Савинцев Егор 🚶 (savintsev_egor) wrote in changelog,
Савинцев Егор 🚶
savintsev_egor
changelog

[ljcom] r10952: LJSUP-9307: Delayed entries and sticky p...

Committer: esavintcev
LJSUP-9307: Delayed entries and sticky posts
U   branches/delayed_entries/bin/upgrading/s2layers/3column/layout.s2
Modified: branches/delayed_entries/bin/upgrading/s2layers/3column/layout.s2
===================================================================
--- branches/delayed_entries/bin/upgrading/s2layers/3column/layout.s2	2011-09-02 07:45:05 UTC (rev 10951)
+++ branches/delayed_entries/bin/upgrading/s2layers/3column/layout.s2	2011-09-02 08:52:35 UTC (rev 10952)
@@ -723,11 +723,21 @@
     var string date = $e.time->date_format("long");
         # Get the Locked or Private icon, if needed.
     var string security;
-    if ($e.security != "") {
+    if ($e.security) {
         $security =  """<img src="$e.security_icon.url" align="right" """+
         """width="$e.security_icon.width" height="$e.security_icon.height" """+
-        """alt="[$e.security]" />""";
+        """alt="[$e.security]" title="[$e.security]" class="i-posticon-flip" />""";
     }
+    if ($e.sticky) {
+        $security = $security + """<img src="$e.sticky_icon.url" align="right" """+
+        """width="$e.sticky_icon.width" height="$e.sticky_icon.height" """+
+        """alt="$*text_icon_alt_sticky" title="$*text_icon_alt_sticky" class="i-posticon-flip" />""";
+    }
+    if ($e.delayed) {
+        $security = $security + """<img src="$e.delayed_icon.url" align="right" """+
+        """width="$e.delayed_icon.width" height="$e.delayed_icon.height" """+
+        """alt="$*text_icon_alt_delayed" title="$*text_icon_alt_delayed" class="i-posticon-flip" />""";
+    }
 
     var UserLite name;
     var string pname;
@@ -1106,7 +1116,9 @@
         if ($e.poster.username != $e.journal.username) {
             $e.poster->print(); " ";
         }
-        "$e.security_icon";
+        if ($e.sticky) {"$e.sticky_icon ";}
+        if ($e.delayed) {"$e.delayed_icon ";}
+        if ($e.security) {"$e.security_icon ";}
         if ($e.subject != "") {
             " <a href=\"$e.permalink_url\">$e.subject</a>";
         } else {

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