yokcel (yokcel) wrote in changelog,
yokcel
yokcel
changelog

[livejournal] r21718: LJSV-2027: Spare text "(posted by )" in ...

Committer: ybuhvalova
LJSV-2027: Spare text "(posted by )" in entries displayed in Refried paper
U   trunk/bin/upgrading/s2layers/refriedpaper/layout.s2
Modified: trunk/bin/upgrading/s2layers/refriedpaper/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/refriedpaper/layout.s2	2012-04-13 13:16:15 UTC (rev 21717)
+++ trunk/bin/upgrading/s2layers/refriedpaper/layout.s2	2012-04-13 14:17:06 UTC (rev 21718)
@@ -1142,12 +1142,13 @@
   if($e isa Entry) {
     $user   = $e.journal + "";
     $poster = $e.poster  + "";
-    if($p.view == "recent" and not($e.poster->equals($e.journal))) {
+
+   if($p.view == "recent" and not($e.poster->equals($e.journal))) {
       $user   = $e.poster + "";
       $poster = "";
-    } elseif($p.view == "recent") {
-      $user = "";
-    }
+      } elseif($p.view == "recent") {
+        $user = "";
+      }
     if($e.poster->equals($e.journal)) {
       if($p.view != "friends") {
         $user = "";
@@ -1165,9 +1166,16 @@
   }
 
   if($user != "") {
+
     $return = $return + """
+
       <td class="dateheader"$screenedfg>$*text_user</td>
       <td class="datecontent"$screenedfg>$user""";
+
+      if ($poster) {
+        $return = $return + " (posted by $poster)";
+      }
+
     $return = $return + """</td>
     """;
   }

Tags: livejournal, s2, ybuhvalova, yokcel
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