X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=root%2Frepository%2Fsearch.tt2;h=5e4d44660278550f51d941899aa2b752e9172086;hb=225bd36dbf284adf49ae0bffe0fc482f228c0011;hp=f9f670d8f415ce54eba554b28dbec47f695e3694;hpb=ef0ad44d281eb459d1d3968096f69cdc63021db1;p=catagits%2FGitalist.git diff --git a/root/repository/search.tt2 b/root/repository/search.tt2 index f9f670d..5e4d446 100755 --- a/root/repository/search.tt2 +++ b/root/repository/search.tt2 @@ -1,7 +1,6 @@ [% BLOCK shortlog_table_headfoot %] [% SET cell = type == 'head' ? 'th' : 'td' %] - <[% cell %] colspan="2">Compare <[% cell %]>ID (sha1) <[% cell %]>Last change <[% cell %]>Message @@ -10,24 +9,27 @@ [% END %] -
+[% 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') _ '' ); %][% result.author.name | html %][% INCLUDE 'inc/gravatar.tt2' email = result.author.email %][% result.author.name | html %] commit commitdiff @@ -35,10 +37,7 @@
Compare
-
+ +[% END %]