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

[ljcom] r10656: LJSUP-8956: Calendar Minimalism

Committer: esavintcev
LJSUP-8956: Calendar Minimalism
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-16 08:24:27 UTC (rev 10655)
+++ trunk/bin/upgrading/s2layers/sup/layout.s2	2011-06-17 04:11:12 UTC (rev 10656)
@@ -507,11 +507,13 @@
         if ($counter%7 == 1) {"""<tr>""";}
             if ($mon.year == $currentDate.year and $mon.month == $currentDate.month and $day.day == $currentDate.day) {
                 """<td class="today">""";
+            } elseif ($mon.year == $currentDate.year and $mon.month == $currentDate.month and $day.day > $currentDate.day) {
+                """<td class="future">""";
             } else {
                 """<td>""";
             }
             if ($day.num_entries > 0) { """<a href="$day.url">"""; }
-            print $day.day == 0?" ":string($day.day);
+            print $day.day == 0?"&nbsp;":string($day.day);
             if ($day.num_entries > 0) { """</a>"""; }
             """</td>""";
         if ($counter%7 == 0) {"""</tr>\n""";}
@@ -737,6 +739,7 @@
     }
 
     _print_CSS();
+    """\n<script type="text/javascript" src="$*STATDIR/js/s2.js"></script>\n""";
     """\n</head>\n<body class="$*body_classes">""";
 }
 function _Footer {

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