Switch to using 960.gs grids for layout.
[catagits/Gitalist.git] / root / repository / search.tt2
1 <div class='content'>
2   [%# XXX Nabbed the HTML below from gitweb's log action. %]
3   [% FOREACH result IN results %]
4   <div class="header">
5    <a class="title" href="[% c.uri_for_action('/ref/commit', [ Repository.name, result.sha1 ]) %]">
6     <span class="age">[% result.authored_time %]</span>
7     [% short_cmt(result.comment) | html %]
8    </a>
9   </div>
10
11   <div class="title_text">
12    <div class="log_link">
13      <a href="[% c.uri_for_action('/ref/commit', [Repository.name, result.sha1]) %]">commit</a>
14    | <a href="[% c.uri_for_action('/ref/diff_fancy', [Repository.name, result.sha1]) %]">commitdiff</a>
15    | <a href="[% c.uri_for_action('/ref/tree', [Repository.name, result.tree_sha1]); %][%# hb=line.sha1 %]">tree</a>
16    </div>
17    <i>[% result.author.name | html %] [% line.authored_time %]</i>
18   </div>
19
20   <div class="log_body">
21    [%
22      # XXX This is fragile at best.
23      html_comment = result.comment | html;
24      html_comment.replace(
25        c.req.param('text'), '<span class="match">' _ c.req.param('text') _ '</span>'
26      );
27    %]
28   </div>
29   [% END %]
30 </div>