Fixed a couple of bugs.
[catagits/Gitalist.git] / root / index.tt2
CommitLineData
d5cc37a4 1[% IF home_text_contents %]
2<div class="index_include">
3 [% home_text_contents %]
4</div>
5[% END %]
6
7<form method="get" action="/" enctype="application/x-www-form-urlencoded">
8<p class="projsearch">Search:
9<input type="text" name="s" value="[% search_text %]" />
10</p>
11</form>
12
13<table class="project_list">
14<thead>
15 <tr>
16 <th>Project</th>
5a2f0948 17 <!-- XXX These do nothing presently -->
18 <th><a class="header" href="/?o=descr">Description</a></th>
19 <th><a class="header" href="/?o=owner">Owner</a></th>
20 <th><a class="header" href="/?o=age">Last Change</a></th>
d5cc37a4 21 <th></th>
22 </tr>
23</thead>
7a88ffa4 24<tfoot>
25 <tr>
26 <td>Project</td>
27 <!-- XXX These do nothing presently -->
28 <td><a href="/?o=descr">Description</a></td>
29 <td><a href="/?o=owner">Owner</a></td>
30 <td><a href="/?o=age">Last Change</a></td>
31 <td></td>
32 </tr>
33</tfoot>
d5cc37a4 34
35<tbody>
36 [%
37 USE Cycle('dark', 'light');
38 FOR p IN projects %]
39 <tr class="[% Cycle.next %]">
c1f608c8 40 <td><a class="list" href="[% c.uri_for('/summary', {p=p.name}) %]">[% p.name %]</a></td>
1fd8159c 41 <td><a class="list" title="[% p.description %]" href="[% c.uri_for('/summary', {p=p.name} ) %]">[% p.description.split(' ').slice(0, 10).join(' ') %]</a></td>
d5cc37a4 42 <td>[% p.owner %]</td>
4621ecf0 43 <td class="time-since">[% time_since(p.last_change) %]</td>
c1f608c8 44 <td class="link"><a href="[% c.uri_for("summary", {p=p.name}) %]">summary</a>
45 | <a href="[% c.uri_for("shortlog", {p=p.name}) %]">shortlog</a>
46 | <a href="[% c.uri_for("log", {p=p.name}) %]">log</a>
47 | <a href="[% c.uri_for("tree", {p=p.name}) %]">tree</a></td>
d5cc37a4 48 </tr>
49 [% END %]
50</tbody>
51
52</table>