madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[ljcom] r12028: LJSUP-12384: Add "repost" icon for post ...

Committer: sbelyaev
LJSUP-12384: Add "repost" icon for post title
U   trunk/bin/upgrading/s2layers/sup/layout.s2
U   trunk/bin/upgrading/s2layers/sup/themes.s2
Modified: trunk/bin/upgrading/s2layers/sup/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/sup/layout.s2	2012-05-30 08:22:29 UTC (rev 12027)
+++ trunk/bin/upgrading/s2layers/sup/layout.s2	2012-05-30 08:50:11 UTC (rev 12028)
@@ -407,7 +407,10 @@
                             """
                             <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.username); " $*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>""";
-                            """
+                            if ($e.reposted_by) {
+                                """<dd class="entry-repost">$e.reposted_by</dd>""";
+                            }
+                           """
                         </dl>
 """;
                     }

Modified: trunk/bin/upgrading/s2layers/sup/themes.s2
===================================================================
--- trunk/bin/upgrading/s2layers/sup/themes.s2	2012-05-30 08:22:29 UTC (rev 12027)
+++ trunk/bin/upgrading/s2layers/sup/themes.s2	2012-05-30 08:50:11 UTC (rev 12028)
@@ -417,6 +417,9 @@
                             <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="entry-date"><abbr class="updated" title="$isodate">$entrydate</abbr></dd>""";
+                            if ($e.reposted_by) {
+                                """<dd class="entry-repost">$e.reposted_by</dd>""";
+                            }
                             """
                         </dl>
                         <div class="entry-content">"""; $e->print_metadata(); $e->print_text();"""</div>
@@ -2176,6 +2179,9 @@
                 """
                 <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="entry-date"><abbr class="updated" title="$isodate">@ $olds1date</abbr></dd>""";
+                if ($e.reposted_by) {
+                    """<dd class="entry-repost">$e.reposted_by</dd>""";
+                }
                 """
             </dl>
             """;
@@ -2324,6 +2330,9 @@
                 """
                 <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="entry-date"><abbr class="updated" title="$isodate">@ $olds1date</abbr></dd>""";
+                if ($e.reposted_by) {
+                    """<dd class="entry-repost">$e.reposted_by</dd>""";
+                }
                 """
             </dl>
             """;
@@ -2590,6 +2599,9 @@
                 """
                 <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="entry-date"><abbr class="updated" title="$isodate">@ $olds1date</abbr></dd>""";
+                if ($e.reposted_by) {
+                    """<dd class="entry-repost">$e.reposted_by</dd>""";
+                }
                 """
             </dl>
             """;
@@ -2872,6 +2884,9 @@
                 """
                 <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="entry-date"><abbr class="updated" title="$isodate">@ $olds1date</abbr></dd>""";
+                if ($e.reposted_by) {
+                    """<dd class="entry-repost">$e.reposted_by</dd>""";
+                }
                 """
             </dl>
             """;

Tags: ljcom, madeon, s2, sbelyaev
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