Савинцев Егор 🚶 (savintsev_egor) wrote in changelog,
Савинцев Егор 🚶
savintsev_egor
changelog

[ljcom] r11352: LJSUP-11056: Need add time for thread

Committer: esavintcev
LJSUP-11056: Need add time for thread
U   trunk/bin/upgrading/s2layers/sup/layout.s2
Modified: trunk/bin/upgrading/s2layers/sup/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/sup/layout.s2	2012-01-25 08:50:33 UTC (rev 11351)
+++ trunk/bin/upgrading/s2layers/sup/layout.s2	2012-01-26 09:11:00 UTC (rev 11352)
@@ -1609,6 +1609,12 @@
     var string poster = defined $c.poster ? _user_print($c.poster, "simple") : """<em class="noposter">$*text_poster_anonymous</em>""";
     var string subj = $c.subject != "" ? $c.subject : """<em class="nosubject">$*text_nosubject</em>""";
     var string sep = """<span class="emdash">—</span>""";
-    print safe """<a href="$c.permalink_url">$subj</a> $sep $poster""";
-    $c->print_expand_collapse_links({ "expand"=>" $sep %_", "collapse"=>" $sep %_"});
+    var string date = """<i>""" + $c->time_display() + """</i>""";
+    if ($*old_s1) {
+        print safe """<a href="$c.permalink_url">$subj</a> - $poster, $date""";
+        $c->print_expand_collapse_links({ "expand"=>" (%_)", "collapse"=>" (%_)"});
+    } else {
+        print safe """<a href="$c.permalink_url">$subj</a> $sep $poster""";
+        $c->print_expand_collapse_links({ "expand"=>" $sep %_", "collapse"=>" $sep %_"});
+    }
 }

Tags: esavintcev, ljcom, s2, savintsev_egor
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments