Committer: esavintcev
LJSV-2146: classic comments in communities displays community name instead of entry author's nameU trunk/bin/upgrading/s2layers/sup/layout.s2
Modified: trunk/bin/upgrading/s2layers/sup/layout.s2 =================================================================== --- trunk/bin/upgrading/s2layers/sup/layout.s2 2012-09-26 10:34:41 UTC (rev 12693) +++ trunk/bin/upgrading/s2layers/sup/layout.s2 2012-09-26 11:12:44 UTC (rev 12694) @@ -398,9 +398,31 @@ """ <dl class="vcard author author-olds1"> """; - if ($e.userpic) { """<dt"""; if ($e.poster.username!=$e.journal.username and not ($p.journal.journal_type == "C" and $p.view == "recent" )){ print " data-journal=\"" + $e.journal->base_url() + "\""; }""">"""; $e.userpic->print(); """</dt>"""; } else { """<dt></dt>"""; } + + if ($e.userpic) { + """<dt"""; + if ($e.poster.username!=$e.journal.username and not ($p.journal.journal_type == "C" and $p.view == "recent" )){ + print " data-journal=\"" + $e.journal->base_url() + "\""; + } + """>"""; + $e.userpic->print(); + """</dt>"""; + } else { + """<dt></dt>"""; + } + """ - <dd class="username">$e.journal.name """; if ($e.poster.username!=$e.journal.username and not ($p.journal.journal_type == "C" and $p.view == "recent" )){ print _user_print_journal($e.poster, "inside", $e.journal.username); " $*text_user_posts_in "; print _user_print($e.journal,"simple");} else { print _user_print($e.poster,"inside"); } """</dd> + <dd class="username">"""; + if ($e.poster.username!=$e.journal.username and not ($p.journal.journal_type == "C" and $p.view == "recent" )) { + """$e.poster.name """; + print _user_print_journal($e.poster, "inside", $e.journal.username); + " $*text_user_posts_in "; + print _user_print($e.journal,"simple"); + } else { + """$e.journal.name """; + print _user_print($e.poster,"inside"); + } + """</dd> <dd class="entry-date"><abbr class="updated" title="$isodate">@ $olds1date</abbr></dd> </dl> """;