summaryrefslogtreecommitdiffstats
path: root/smarty
diff options
context:
space:
mode:
authorJohan "Papa" Cwiklinski <trasher@odysseus.(none)>2010-05-29 22:42:39 +0200
committerJohan "Papa" Cwiklinski <trasher@odysseus.(none)>2010-05-29 22:42:39 +0200
commit3a7c67284db39bc8a0618903f7de93603867f4b0 (patch)
tree0c8e00ef6442208c9a0b16011975b3774c8b50b0 /smarty
parent4fded33567be2378d9ed9ac3e9265fa377b0d4eb (diff)
Add classes for odd/even rows ; refs #47
Diffstat (limited to 'smarty')
-rw-r--r--smarty/templates/rpmphp/zoom.tpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/smarty/templates/rpmphp/zoom.tpl b/smarty/templates/rpmphp/zoom.tpl
index a498080..e60161c 100644
--- a/smarty/templates/rpmphp/zoom.tpl
+++ b/smarty/templates/rpmphp/zoom.tpl
@@ -43,8 +43,8 @@
</thead>
<tbody>
{assign var='prev' value=''}
- {foreach from=$packages item=p}
- <tr>
+ {foreach from=$packages item=p name=plist}
+ <tr class="{if $smarty.foreach.plist.iteration % 2 eq 0}even{else}odd{/if}">
<td>{if $p->repo_main neq $prev}<strong>{$p->repo_main}</strong>{/if}</td>
<td>{$p->repo_sub}</td>
<td>