aboutsummaryrefslogtreecommitdiffstats
path: root/admin/template/goto/rating.tpl
diff options
context:
space:
mode:
authorvdigital <vdigital@piwigo.org>2008-09-16 16:32:17 +0000
committervdigital <vdigital@piwigo.org>2008-09-16 16:32:17 +0000
commita1c4955e9b17b020b0f39d0a6929ea7b8d247aea (patch)
treee37fedaa9c95b06f2c2f808642ba4320c02919d4 /admin/template/goto/rating.tpl
parent6050a6ab1b8270278c09564b95096f2c234ba2ae (diff)
Admin goto/roma minor CSS / templates changes.
Public yoga/Sylvia minor CSS / gif changes git-svn-id: http://piwigo.org/svn/trunk@2540 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--admin/template/goto/rating.tpl8
1 files changed, 4 insertions, 4 deletions
diff --git a/admin/template/goto/rating.tpl b/admin/template/goto/rating.tpl
index 442673a78..ac5d2f262 100644
--- a/admin/template/goto/rating.tpl
+++ b/admin/template/goto/rating.tpl
@@ -42,16 +42,16 @@
<td>{'Rate date'|@translate}</td>
<td></td>
</tr>
-{foreach from=$images item=image}
-<tr valign="bottom">
+{foreach from=$images item=image name=image}
+<tr valign="bottom" class="{if $smarty.foreach.image.index is odd}row1{else}row2{/if}">
<td rowspan="{$image.NB_RATES_TOTAL+1}"><a href="{$image.U_URL}"><img src="{$image.U_THUMB}" alt="{$image.FILE}" title="{$image.FILE}"></a></td>
<td rowspan="{$image.NB_RATES_TOTAL+1}"><strong>{$image.NB_RATES}/{$image.NB_RATES_TOTAL}</strong></td>
<td rowspan="{$image.NB_RATES_TOTAL+1}"><strong>{$image.AVG_RATE}</strong></td>
<td rowspan="{$image.NB_RATES_TOTAL+1}"><strong>{$image.STD_RATE}</strong></td>
<td rowspan="{$image.NB_RATES_TOTAL+1}" style="border-right: 1px solid;" ><strong>{$image.SUM_RATE}</strong></td>
</tr>
-{foreach from=$image.rates item=rate}
-<tr>
+{foreach from=$image.rates item=rate name=rate}
+<tr class="{if ($smarty.foreach.image.index+$smarty.foreach.rate.index) is odd}row1{else}row2{/if}">
<td>{$rate.RATE}</td>
<td><b>{$rate.USER}</b></td>
<td><span class="date">{$rate.DATE}</span></td>