Author: benj
Date: Tue May 31 14:09:54 2016
New Revision: 1700
URL: http://svn.gna.org/viewcvs/gdtc?rev=1700&view=rev
Log:
Unfuck hour
Modified:
trunk/gdtc/templates/smarty/display_hour.tpl
trunk/gdtc/templates/smarty/list_benevalo.tpl
Modified: trunk/gdtc/templates/smarty/display_hour.tpl
URL:
http://svn.gna.org/viewcvs/gdtc/trunk/gdtc/templates/smarty/display_hour.tpl?rev=1700&r1=1699&r2=1700&view=diff
==============================================================================
--- trunk/gdtc/templates/smarty/display_hour.tpl (original)
+++ trunk/gdtc/templates/smarty/display_hour.tpl Tue May 31 14:09:54 2016
@@ -1,3 +1,3 @@
-{assign var="h" value=`$hour/60`}
-{assign var="m" value=`$hour%60`}
+{$h = ( $hour / 60 )}
+{$m = ( $hour % 60 )}
{$h|string_format:"%02d"}h{$m|string_format:"%02d"}
Modified: trunk/gdtc/templates/smarty/list_benevalo.tpl
URL:
http://svn.gna.org/viewcvs/gdtc/trunk/gdtc/templates/smarty/list_benevalo.tpl?rev=1700&r1=1699&r2=1700&view=diff
==============================================================================
--- trunk/gdtc/templates/smarty/list_benevalo.tpl (original)
+++ trunk/gdtc/templates/smarty/list_benevalo.tpl Tue May 31 14:09:54 2016
@@ -12,6 +12,7 @@
</tr>
{assign var="index" value="0"}
+
{section name=entry loop=$additional.benevalo_entries}
{if $index != $additional.benevalo_entries[entry].month}
@@ -44,6 +45,7 @@
<td width="60"><a
href="?action=edit&table=benevalo&id={$additional.benevalo_entries[entry].benevalo_id}"><img
class="regular" border="0" src="../dtcimages/edit.png"></a><a
href="?action=delete&table=benevalo&id={$additional.benevalo_entries[entry].benevalo_id}&actor_id={$additional.benevalo_entries[entry].actor_id}"
onclick="return confirm('Voulez vous supprimer cet enregistrement ?');"><img
class="regular" border="0" src="../dtcimages/delete.png"></a></td>
</tr>
+
{/section}
</table>
_______________________________________________
Gdtc-commits mailing list
[email protected]
https://mail.gna.org/listinfo/gdtc-commits