Move all the templates back into the 'root' directory, otherwise make install will...
[catagits/Gitalist.git] / root / index.tt2
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>
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>
21         <th></th>
22     </tr>
23 </thead>
24
25 <tbody>
26   [%
27     USE Cycle('dark', 'light');
28     FOR p IN projects %]
29     <tr class="[% Cycle.next %]">
30         <td><a class="list" href="/summary?p=[% p.name %]">[% p.name %]</a></td>
31         <td><a class="list" title="[% p.description %]" href="/summary?p=[% p.name %]">[% p.description.substr(0, 20) %]</a></td>
32         <td>[% p.owner %]</td>
33         <td class="age2">[% p.last_change %]</td>
34         <td class="link"><a href="[% c.uri_for("summary") %]">summary</a>
35             | <a href="[% c.uri_for("shortlog") %]">shortlog</a>
36             | <a href="[% c.uri_for("log") %]">log</a>
37             | <a href="[% c.uri_for("tree") %]">tree</a></td>
38     </tr>
39   [% END %]
40 </tbody>
41
42 </table>