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

[ljcom] r12184: LJSV-2292: Reposter's name don't shown i...

Committer: esavintcev
LJSV-2292: Reposter's name don't shown in some styles
U   trunk/bin/upgrading/s2layers/anovelconundrum/layout.s2
U   trunk/bin/upgrading/s2layers/opal/layout.s2
Modified: trunk/bin/upgrading/s2layers/anovelconundrum/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/anovelconundrum/layout.s2	2012-06-26 23:17:53 UTC (rev 12183)
+++ trunk/bin/upgrading/s2layers/anovelconundrum/layout.s2	2012-06-27 09:13:01 UTC (rev 12184)
@@ -657,6 +657,9 @@
 """        <a href="$e.permalink_url">$time<br />
         $date</a><br /><br />
     """;
+    if ($e.reposted_by) {
+        """$e.reposted_by<br /><br />""";
+    }
     $e.comments->print();
 
 """    </div></td>
@@ -665,6 +668,7 @@
         <div class="author">""";
             if ($e.userpic) { $e.userpic->print(); """<br />""";}
             print $e.poster->ljuser();
+            if ($e.repost) {" $e.repost_icon";}
             if ($e.delayed) {" $e.delayed_icon";}
             if ($e.sticky) {" $e.sticky_icon";}
             if ($e.security) {" $e.security_icon";}

Modified: trunk/bin/upgrading/s2layers/opal/layout.s2
===================================================================
--- trunk/bin/upgrading/s2layers/opal/layout.s2	2012-06-26 23:17:53 UTC (rev 12183)
+++ trunk/bin/upgrading/s2layers/opal/layout.s2	2012-06-27 09:13:01 UTC (rev 12184)
@@ -966,10 +966,16 @@
     var string time = $e.time->time_format();
     var string date = $e.time->date_format();
     var string security;
+    if ($e.repost) { $security = $security + " $e.repost_icon"; }
     if ($e.delayed) { $security = $security + " $e.delayed_icon"; }
     if ($e.sticky) { $security = $security + " $e.sticky_icon"; }
     if ($e.security) { $security = $security + " $e.security_icon"; }
 
+    var string repost = "";
+    if ($e.reposted_by) {
+        $repost = """, $e.reposted_by""";
+    }
+
     var UserLite name;
     var string pname;
 
@@ -995,7 +1001,7 @@
         $this->lay_make_username($e);
     }
     """
-                                        <div class="entryinfo">$security $date $time</div>
+                                        <div class="entryinfo">$security $date $time$repost</div>
                                         <div class="entrydivider"></div>
                                         <div class="entrylinks">
     """;
@@ -1653,6 +1659,7 @@
             $e.poster->print(); " ";
         }
 
+        if ($e.repost) { " $e.repost_icon "; }
         if ($e.delayed) { " $e.delayed_icon "; }
         if ($e.sticky) { " $e.sticky_icon "; }
         if ($e.security) { " $e.security_icon "; }

Tags: esavintcev, 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