[Catalyst-commits] r14166 - trunk/examples/CatalystAdvent/root

dpetrov at dev.catalyst.perl.org dpetrov at dev.catalyst.perl.org
Wed Nov 30 10:59:27 GMT 2011


Author: dpetrov
Date: 2011-11-30 10:59:27 +0000 (Wed, 30 Nov 2011)
New Revision: 14166

Modified:
   trunk/examples/CatalystAdvent/root/wrapper.tt
Log:
Display day instead dayS if only one day left till the calendar starts

Modified: trunk/examples/CatalystAdvent/root/wrapper.tt
===================================================================
--- trunk/examples/CatalystAdvent/root/wrapper.tt	2011-11-28 20:42:42 UTC (rev 14165)
+++ trunk/examples/CatalystAdvent/root/wrapper.tt	2011-11-30 10:59:27 UTC (rev 14166)
@@ -18,7 +18,7 @@
 
         <div id="content">
 [%- IF days_until > 0 %]
-<h1>[% days_until %] days until the calendar starts!</h2>
+<h1>[% days_until %] [% IF days_until == 1 %]day[% ELSE %]days[% END %] until the calendar starts!</h2>
 <p class="center">In the mean time, you might want to check our archives.</p>
 <p class="center">
 [% FOREACH previous_year IN previous_years %]




More information about the Catalyst-commits mailing list