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

[livejournal] r19726: LJSUP-8806: Showing link to suspicious c...

Committer: mchervonniy
LJSUP-8806: Showing link to suspicious comments, if there is no normal comments, A Sturdy Gesture
U   trunk/bin/upgrading/s2layers/sturdygesture/layout.s2
Modified: trunk/bin/upgrading/s2layers/sturdygesture/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/sturdygesture/layout.s2	2011-08-15 10:08:55 UTC (rev 19725)
+++ trunk/bin/upgrading/s2layers/sturdygesture/layout.s2	2011-08-15 10:20:36 UTC (rev 19726)
@@ -736,16 +736,19 @@
         if ($.show_postlink) {
             $this->print_postlink();
         }
-        if ($.show_postlink and $.show_readlink) {
+        if (($.show_postlink and $.show_readlink) or ($.spam_counter > 0)) {
             " | ";
         }
+        if ($p.view == "entry" and $.spam_counter > 0 and $.read_spam_url != "") {
+            if ($p.showspam) {
+                print safe get_plural_phrase($.spam_counter, "text_read_spam_comments");
+            } else {
+                print safe """<a href=\"$.read_spam_url#$*text_comments_id\">""" + get_plural_phrase($.spam_counter, "text_read_all_spam_comments") + """</a>""";
+            }
+        }
         if ($.show_readlink) {
-            if ($p.view == "entry" and $.spam_counter > 0 and $.read_spam_url != "") {
-                if ($p.showspam) {
-                    print safe get_plural_phrase($.spam_counter, "text_read_spam_comments") + """ | """;
-                } else {
-                    print safe """<a href=\"$.read_spam_url#$*text_comments_id\">""" + get_plural_phrase($.spam_counter, "text_read_all_spam_comments") + """</a> | """;
-                }
+            if ($.spam_counter > 0) {
+                """ | """;
             }
             $this->print_readlink();
         }

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