Starting to streamline and generally rejig the layout.
[catagits/Gitalist.git] / root / index.tt2
1 <div class='content'>
2   <form method="get" action="/" enctype="application/x-www-form-urlencoded">
3    <p class="projsearch">Search:
4     <input type="text" name="s" value="[% search_text %]" />
5    </p>
6   </form>
7
8   <table class="project_list">
9     <thead>
10         <tr>
11             <th>Project</th>
12             <!-- XXX These do nothing presently -->
13             <th><a class="header" href="/?o=descr">Description</a></th>
14             <th><a class="header" href="/?o=owner">Owner</a></th>
15             <th><a class="header" href="/?o=age">Last Change</a></th>
16             <th></th>
17         </tr>
18     </thead>
19     <tfoot>
20         <tr>
21             <td>Project</td>
22             <!-- XXX These do nothing presently -->
23             <td><a href="/?o=descr">Description</a></td>
24             <td><a href="/?o=owner">Owner</a></td>
25             <td><a href="/?o=age">Last Change</a></td>
26             <td></td>
27         </tr>
28     </tfoot>
29
30     <tbody class='listing'>
31       [% FOR p IN projects %]
32         <tr>
33             <td><a class="list" href="[% c.uri_for('/summary', {p=p.name}) %]">[% p.name %]</a></td>
34             <td><a class="list" title="[% p.description %]" href="[% c.uri_for('/summary', {p=p.name} ) %]">[% abridged_description(p.description)  %]</a></td>
35             <td>[% p.owner %]</td>
36             <td class="time-since">[% time_since(p.last_change) %]</td>
37             <td class="link"><a href="[% c.uri_for("summary", {p=p.name}) %]">summary</a>
38                 | <a href="[% c.uri_for("shortlog", {p=p.name}) %]">shortlog</a>
39                 | <a href="[% c.uri_for("log", {p=p.name}) %]">log</a>
40                 | <a href="[% c.uri_for("tree", {p=p.name}) %]">tree</a></td>
41         </tr>
42       [% END %]
43     </tbody>
44   </table>
45 </div>