Снорк (nely_snork) wrote in changelog,
Снорк
nely_snork
changelog

[livejournal] r16316: LJSV-605: Add "lock comments" feature to...

Committer: narefieva
LJSV-605: Add "lock comments" feature to community journals.
U   trunk/bin/upgrading/s2layers/generator/layout.s2
Modified: trunk/bin/upgrading/s2layers/generator/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/generator/layout.s2	2010-03-03 11:49:27 UTC (rev 16315)
+++ trunk/bin/upgrading/s2layers/generator/layout.s2	2010-03-03 12:20:44 UTC (rev 16316)
@@ -896,7 +896,10 @@
     if ($p.view != "entry" and $p.view != "reply") {
         "<td align='right' class='comments'>"; $e.comments->print();
     } elseif ($e.comments.enabled) {
-        "<td align='right' class='comments'>"; $p->print_reply_link({"linktext" => $*text_comment_reply, "target" => "topcomment"});
+        "<td align='right' class='comments'>";
+if (not $e.comments.locked) {
+		$p->print_reply_link({"linktext" => $*text_comment_reply, "target" => "topcomment"});
+}
     } else {
         "<td>";
     }

Tags: livejournal, nely_snork, s2
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