X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=root%2Frepository%2Fsearch.tt2;h=5e4d44660278550f51d941899aa2b752e9172086;hb=refs%2Fheads%2Fwilson;hp=4d79196b5a7ae660a4dceccb999a8357440e6102;hpb=8fd20a28cd2d6df24f0f4a123dffa53ae3547f45;p=catagits%2FGitalist.git diff --git a/root/repository/search.tt2 b/root/repository/search.tt2 old mode 100644 new mode 100755 index 4d79196..5e4d446 --- a/root/repository/search.tt2 +++ b/root/repository/search.tt2 @@ -1,31 +1,43 @@ -[% INCLUDE 'nav/actions.tt2' object = commit %] -
- [%# XXX Nabbed the HTML below from gitweb's log action. %] - [% FOREACH result IN results %] -
- - [% result.authored_time %] - [% short_cmt(result.comment) | html %] - -
+[% BLOCK shortlog_table_headfoot %] +[% SET cell = type == 'head' ? 'th' : 'td' %] + + <[% cell %]>ID (sha1) + <[% cell %]>Last change + <[% cell %]>Message + <[% cell %]>By + <[% cell %]>Actions + +[% END %] -
- - [% result.author.name | html %] [% line.authored_time %] -
+[% IF results.size == 0 %] +
+No results found for [% c.req.param('text') | html %]. +
+[% ELSE %] -
- [% + +[% PROCESS shortlog_table_headfoot type = 'head' %] + +[% FOREACH result IN results %] + + + + + + + +[% END %] + +
[% INCLUDE 'inc/chroma_hash.tt2' sha1 = result.sha1.substr(0, 7) %][% time_since(result.authored_time) %][% # XXX This is fragile at best. html_comment = result.comment | html; html_comment.replace( c.req.param('text'), '' _ c.req.param('text') _ '' ); - %] - - [% END %] - + %][% INCLUDE 'inc/gravatar.tt2' email = result.author.email %][% result.author.name | html %] + commit + commitdiff + tree +
+ +[% END %]