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

[ljcom] r10658: LJSUP-9091: Sort by Poster

Committer: esavintcev
LJSUP-9091: Sort by Poster
U   trunk/bin/upgrading/s2layers/sup/layout.s2
Modified: trunk/bin/upgrading/s2layers/sup/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/sup/layout.s2	2011-06-17 04:19:46 UTC (rev 10657)
+++ trunk/bin/upgrading/s2layers/sup/layout.s2	2011-06-17 07:58:23 UTC (rev 10658)
@@ -315,6 +315,10 @@
     return $result;
 }
 
+function _user_print_journal(UserLite user, string mode, string journal_name) : string { 
+     return $user->ljuser({"in_journal" => $journal_name}); 
+ }
+
 function _print_entry(Entry e) {
     var Page p = get_page();
     var string entrydate = _dateTime($e.time);
@@ -359,7 +363,7 @@
                     <dd class="entry-text">
                         <dl class="vcard author">
                             <dt>"""; if ($e.userpic) { $e.userpic->print(); } """</dt>
-                            <dd class="username">"""; print _user_print($e.poster,"inside"); if ($e.poster.username!=$e.journal.username and not ($p.journal.journal_type == "C" and $p.view == "recent" )){ " $*text_user_posts_in "; print _user_print($e.journal,"simple");} """</dd>
+                            <dd class="username">"""; 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.name); " $*text_user_posts_in "; print _user_print($e.journal,"simple");} else { print _user_print($e.poster,"inside"); } """</dd>
                             <dd class="entry-date"><abbr class="updated" title="$isodate">$entrydate</abbr></dd>
                         </dl>
 """;

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