Bug 7501: OPAC auth browser should have alternating colors github/bug_7501 origin/new/bug_7501
authorJared Camins-Esakov <jcamins@cpbibliography.com>
Sat, 4 Feb 2012 17:39:12 +0000 (12:39 -0500)
committerPaul Poulain <paul.poulain@biblibre.com>
Mon, 13 Feb 2012 09:18:19 +0000 (10:18 +0100)
Test plan:

1. Access authority browser in OPAC. Note that all rows have the same background
   color.
2. Apply patch, notice that colors now alternate.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
koha-tmpl/opac-tmpl/prog/en/modules/opac-authoritiessearchresultlist.tt

index 1b57410..6638826 100644 (file)
                                <th>Full Heading</th>                           
                        </tr>
                        [% FOREACH resul IN result %]
-                               <tr>
+            [% UNLESS ( loop.odd ) %]
+                <tr class="highlight">
+            [% ELSE %]
+                <tr>
+            [% END %]
                                        <td>[% resul.summary %]</td>
 
                                                <td>