Committer: esavintcev
LJSUP-7758: AntiSpam S2U trunk/bin/upgrading/s2layers/nebula/layout.s2
Modified: trunk/bin/upgrading/s2layers/nebula/layout.s2 =================================================================== --- trunk/bin/upgrading/s2layers/nebula/layout.s2 2011-02-24 11:41:33 UTC (rev 10120) +++ trunk/bin/upgrading/s2layers/nebula/layout.s2 2011-02-24 11:45:56 UTC (rev 10121) @@ -380,6 +380,8 @@ note = "If you use a URL of an image (starting with 'http://'), Nebula will use the image as a separator. It helps to use a small image for this purpose, and your image might break if the URL contains any spaces."; example = "&nbsp;|&nbsp; or http://www.example.com/your_image.jpg"; } + property use text_showspam; + property use text_hidespam; } set text_navigation = "Navigation"; set text_navigation_extra = "This page"; @@ -1523,6 +1525,13 @@ } if ( $.count > 0 or $.screened and $p.view != "entry") { $this->print_readlink(); + if ($p.view == "entry") { + if ($p.showspam) { + print safe """$link_separator<a href=\"$.read_spam_url\">$*text_hidespam</a>"""; + } else { + print safe """$link_separator<a href=\"$.read_spam_url\">$*text_showspam</a>"""; + } + } } else { print safe "<a href='$.read_url'>$*text_permalink</a>"; }