From 3a7c67284db39bc8a0618903f7de93603867f4b0 Mon Sep 17 00:00:00 2001 From: "Johan \"Papa\" Cwiklinski" Date: Sat, 29 May 2010 22:42:39 +0200 Subject: Add classes for odd/even rows ; refs #47 --- smarty/templates/rpmphp/zoom.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'smarty') 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 @@ {assign var='prev' value=''} - {foreach from=$packages item=p} - + {foreach from=$packages item=p name=plist} + {if $p->repo_main neq $prev}{$p->repo_main}{/if} {$p->repo_sub} -- cgit