Committer: sbelyaev
LJSUP-12384: Add "repost" icon for post titleU trunk/bin/upgrading/s2layers/core1.s2 U trunk/cgi-bin/LJ/S2.pm
Modified: trunk/bin/upgrading/s2layers/core1.s2 =================================================================== --- trunk/bin/upgrading/s2layers/core1.s2 2012-05-30 08:21:59 UTC (rev 22105) +++ trunk/bin/upgrading/s2layers/core1.s2 2012-05-30 08:46:23 UTC (rev 22106) @@ -330,6 +330,8 @@ var readonly string permalink_url "A URL at which this specific entry can be viewed, for linking purposes."; var int depth "Visual depth of entry. Top-level journal entries are always depth zero. Comments have a depth greater than or equal to one, depending on where the thread is rooted at."; + var readonly string reposted_by "The string about reposter"; + var string[] link_keyseq "An array of keys which you should pass to [method[EntryLite.get_link(string key)]] to produce an entry 'toolbar'. Does not contain nav_next and nav_prev for entries; you should retrieve those separately and put them somewhere appropriate for your layout."; function print_text() [fixed] Modified: trunk/cgi-bin/LJ/S2.pm =================================================================== --- trunk/cgi-bin/LJ/S2.pm 2012-05-30 08:21:59 UTC (rev 22105) +++ trunk/cgi-bin/LJ/S2.pm 2012-05-30 08:46:23 UTC (rev 22106) @@ -1969,6 +1969,9 @@ if ($e->{'real_journalid'}) { $e->{'repost'} = 1; $e->{'repost_icon'} = Image_std('reposted-entry'); + + my $reposter = LJ::want_user($e->{'real_journalid'}); + $e->{'reposted_by'} = LJ::Lang::ml( 'entry.reference.reposter', { 'reposter' => LJ::ljuser2($reposter) } ); } # Note: nav_prev and nav_next are not included in the keyseq anticipating