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

[livejournal] r20551: LJSV-1899: Security icon being shown in ...

Committer: mchervonniy
LJSV-1899: Security icon being shown in middle of page, Disjointed style
U   trunk/bin/upgrading/s2layers/disjointed/layout.s2
Modified: trunk/bin/upgrading/s2layers/disjointed/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/disjointed/layout.s2	2011-11-16 09:46:38 UTC (rev 20550)
+++ trunk/bin/upgrading/s2layers/disjointed/layout.s2	2011-11-16 10:58:07 UTC (rev 20551)
@@ -907,11 +907,15 @@
   }
   if($this isa Entry) {
     var Entry en = $this as Entry;
-
-    if ($en.delayed) { "$en.delayed_icon "; }
-    if ($en.sticky) { "$en.sticky_icon "; }
-    if ($en.security) { "$en.security_icon "; }
-
+    if ($en.delayed) {
+        $icon = $en.delayed_icon + " ";
+        }
+    if ($en.sticky) {
+        $icon = $en.sticky_icon + " ";
+    }
+    if ($en.security) {
+        $icon = $en.security_icon + " ";
+    }
   }
   return $icon;
 }
@@ -1534,8 +1538,8 @@
     if ($p.view != "entry" and not $subject->contains("<a ")) {
         $subject = """<a name="$id" id="$id"></a>$icon<a href="$e.permalink_url" class="subj subj-link">$subject</a>""";
     } else {
-       $subject = """<a name="$id" id="$id"></a>$icon$subject""";
-}
+        $subject = """<a name="$id" id="$id"></a>$icon$subject""";
+    }
 
 
   if ($e isa Comment) {

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