fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2012-01-31 03:00 am

[dw-free] Style Comments Page with Outline Indicators in Place of Indents

[commit: http://hg.dwscoalition.org/dw-free/rev/8f821c19ee73]

http://bugs.dwscoalition.org/show_bug.cgi?id=3286

Also add ECHI to collapsed comments on site skinned comment pages.

Patch by [personal profile] allen.

Files modified:
  • htdocs/talkread.bml
--------------------------------------------------------------------------------
diff -r 465c8ed9639b -r 8f821c19ee73 htdocs/talkread.bml
--- a/htdocs/talkread.bml	Tue Jan 31 10:58:20 2012 +0800
+++ b/htdocs/talkread.bml	Tue Jan 31 11:02:03 2012 +0800
@@ -712,7 +712,11 @@
                 if ($post->{'state'} eq 'F') {
                     $ret .= "($T{'frozen'}) ";
                 }
-                $ret .= "<a href='$url'>" . LJ::ehtml($post->{'subject'} || $T{'nosubject'}) . "</a> - $user, <i>$datepost</i>";
+                my $echitext = "";
+                if ( $post->{echi} ) {
+                    $echitext = qq{<span class="echi">$post->{echi}.</span> };
+                }
+                $ret .= "<a href='$url'>$echitext" . LJ::ehtml($post->{'subject'} || $T{'nosubject'}) . "</a> - $user, <i>$datepost</i>";
                 $ret .= qq[ (<a href='$url' onClick="Expander.make(this,'$url','$dtid',true);return false;">$T{'expand'}</a>)] if $show_thread_expander;
 
                 # Comment Posted Notice
--------------------------------------------------------------------------------