fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2010-07-29 06:19 am

[dw-free] Timestamp collapsed comments on journal styled pages

[commit: http://hg.dwscoalition.org/dw-free/rev/9cfda3795b0c]

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

Add timestamp and tweak poster display (so you get the same classes for
stylability) for collapsed comments.

Patch by [personal profile] ninetydegrees.

Files modified:
  • bin/upgrading/s2layers/core2.s2
--------------------------------------------------------------------------------
diff -r a71463d5d873 -r 9cfda3795b0c bin/upgrading/s2layers/core2.s2
--- a/bin/upgrading/s2layers/core2.s2	Wed Jul 28 22:56:28 2010 -0700
+++ b/bin/upgrading/s2layers/core2.s2	Wed Jul 28 23:19:00 2010 -0700
@@ -5351,10 +5351,11 @@ function EntryPage::print_comment_partia
     else {
         var string poster = defined $c.poster ? $c.poster->as_string() : "<i>$*text_poster_anonymous</i>";
         $c->print_subject();
-        print safe " - $poster";
+        $c->print_poster(); " - ";
+        $c->print_time();
         var Link expand_link = $c->get_link("expand_comments");
         if (defined $expand_link) {
-            " "; $c->print_expand_link();
+            " - "; $c->print_expand_link();
         }
     }
     $c->print_wrapper_end();
--------------------------------------------------------------------------------