Fix app-mech-rootpage.t test.
[catagits/Gitalist.git] / root / fragment / collectionofrepositories.tt2
old mode 100644 (file)
new mode 100755 (executable)
index 6062e24..b053ea8
@@ -1,15 +1,17 @@
-<tbody class='listing'>
-  [% FOR p IN repositories %]
-  [%- repos_link = c.uri_for_action('/repository/summary', [p.name]) -%]
-<tr class="reposrow">
-    <td><a class="list" href="[% repos_link %]">[% p.name %]</a></td>
-    <td><a class="list" title="[% p.description %]" href="[% repos_link %]">[% abridged_description(p.description)  %]</a></td>
-    <td>[% p.owner %]</td>
+<tbody>
+[% FOR p IN repositories %]
+       [%- repos_link = c.uri_for_action('/repository/summary', [p.name]) -%]
+<tr class="repository[% " invert" IF loop.count % 2 %]">
+    <td>[% loop.count %]</td>
+       <td><a href="[% repos_link %]/summary"><strong>[% p.name %]</strong></a></td>
+    <td class="description"><div title="[% p.description %]">[% abridged_description(p.description) IF p.description != "Unnamed repository; edit this file to name it for gitweb." %]</div></td>
     <td class="time-since">[% time_since(p.last_change) %]</td>
-    <td class="link"><a href="[% repos_link %]">summary</a>
-       | <a href="[% c.uri_for_action('/repository/shortlog', [p.name]) %]">shortlog</a>
-       | <a href="[% c.uri_for_action('/repository/longlog', [p.name]) %]">log</a>
-       | <a href="[% c.uri_for_action('/ref/tree', [p.name, 'HEAD']) %]">tree</a></td>
+    <td>[% p.owner %]</td>
+    <td class="action-list">
+       <a href="[% c.uri_for_action('/repository/shortlog', [p.name]) %]" title="Short log" class="button shortlog">short log</a>
+       <a href="[% c.uri_for_action('/repository/longlog', [p.name]) %]" title="Long log" class="button longlog">long log</a>
+       <a href="[% c.uri_for_action('/ref/tree', [p.name, 'HEAD']) %]" title="Tree" class="button tree">tree</a>
+       </td>
 </tr>
-  [% END %]
+[% END %]
 </tbody>