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

[ljcom] r10865: LJSUP-8806: Showing link to suspicious c...

Committer: mchervonniy
LJSUP-8806: Showing link to suspicious comments, if there is no normal comments, Nebula
U   trunk/bin/upgrading/s2layers/nebula/layout.s2
Modified: trunk/bin/upgrading/s2layers/nebula/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/nebula/layout.s2	2011-08-15 10:01:46 UTC (rev 10864)
+++ trunk/bin/upgrading/s2layers/nebula/layout.s2	2011-08-15 10:01:56 UTC (rev 10865)
@@ -1541,6 +1541,10 @@
     }
     if ( $.count > 0 or $.screened and $p.view != "entry") {
         $this->print_readlink();
+    } else {
+        print safe "<a href='$.read_url'>$*text_permalink</a>";
+    }
+    if ($.spam_counter > 0) {
         if ($p.view == "entry" and $.spam_counter > 0 and $.read_spam_url != "") {
             if ($p.showspam) {
                 print safe """$link_separator""" + get_plural_phrase($.spam_counter, "text_read_spam_comments");
@@ -1548,8 +1552,6 @@
                 print safe """$link_separator<a href=\"$.read_spam_url#$*text_comments_id\">""" + get_plural_phrase($.spam_counter, "text_read_all_spam_comments") + """</a>""";
             }
         }
-    } else {
-        print safe "<a href='$.read_url'>$*text_permalink</a>";
     }
     print safe "$link_separator"; $this->print_postlink();
     "\n            </div>";

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