Committer: ybuhvalova
LJSV-2027: Spare text "(posted by )" in entries displayed in Refried paperU 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> """; }