Links to thread

This commit is contained in:
Difrex(Denis Zheleztsov) 2014-06-16 01:40:11 +04:00
parent 53edeeb59a
commit f746f628ec
3 changed files with 11 additions and 1 deletions

View File

@ -94,7 +94,16 @@ sub post {
my $post = II::T->pre( $data->{post} ); my $post = II::T->pre( $data->{post} );
my $cut;
if ( $data->{subg} =~ /Re:\s(.+)/ ) {
$cut = $1;
}
else {
$cut = $data->{subg};
}
$p->param( SUBG => $data->{subg} ); $p->param( SUBG => $data->{subg} );
$p->param( CUT => $cut );
$p->param( TIME => "$time" ); $p->param( TIME => "$time" );
$p->param( FROM => $data->{from} ); $p->param( FROM => $data->{from} );
$p->param( TO => $data->{to} ); $p->param( TO => $data->{to} );

View File

@ -20,6 +20,7 @@
/*position: relative;*/ /*position: relative;*/
background-color: #C7BA6C; background-color: #C7BA6C;
border-color: #999; border-color: #999;
color: #222;
border-radius: 5px; border-radius: 5px;
padding-left: 10px; padding-left: 10px;
margin-right: 10px; margin-right: 10px;

View File

@ -1,5 +1,5 @@
<div class=post> <div class=post>
<h2><TMPL_VAR NAME=SUBG></h2> <a href="/s?subg=<TMPL_VAR NAME=CUT>&echo=<TMPL_VAR NAME=ECHO>"><h2><TMPL_VAR NAME=SUBG></h2></a>
<div class=mail> <div class=mail>
<i><TMPL_VAR NAME=TIME></i><br> <i><TMPL_VAR NAME=TIME></i><br>
From: <strong><TMPL_VAR NAME=FROM></strong><br> From: <strong><TMPL_VAR NAME=FROM></strong><br>