Максим Червонный (fiskus_boulder) wrote in changelog,
Максим Червонный
fiskus_boulder
changelog

[ljcom] r10246: LJSUP-8126: number of spam comments

Committer: mchervonniy
LJSUP-8126: number of spam comments
U   trunk/bin/upgrading/s2layers/smoothsailing/layout.s2
Modified: trunk/bin/upgrading/s2layers/smoothsailing/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/smoothsailing/layout.s2	2011-03-16 05:30:48 UTC (rev 10245)
+++ trunk/bin/upgrading/s2layers/smoothsailing/layout.s2	2011-03-16 05:49:37 UTC (rev 10246)
@@ -1691,11 +1691,11 @@
           <div class="entryLinkbar"><ul>
           """;
           var string comments_showspam = "";
-          if ($p.view == "entry") {
+          if ($p.view == "entry" and $.comments.read_spam_url != "") {
               if ($p.showspam) {
-                  $comments_showspam = """<li><a href=\"$.comments.read_spam_url\">$*text_hidespam ($.comments.spam_counter)</a></li>""";
+                  $comments_showspam = """<li>""" + get_plural_phrase($.comments.spam_counter, "text_read_spam_comments") + """</li>""";
               } else {
-                  $comments_showspam = """<li><a href=\"$.comments.read_spam_url\">$*text_showspam ($.comments.spam_counter)</a></li>""";
+                  $comments_showspam = """<li><a href=\"$.comments.read_spam_url\">""" + get_plural_phrase($.comments.spam_counter, "text_read_all_spam_comments") + """</a></li>""";
               }
           }
           if ($.comments.enabled) {

Tags: fiskus_boulder, ljcom, 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