X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=root%2Frepository%2Fsearch.tt2;h=5e4d44660278550f51d941899aa2b752e9172086;hb=225bd36dbf284adf49ae0bffe0fc482f228c0011;hp=901d4d6aa2bb217d7722bb6aa8e00e1d13f15bef;hpb=a2ae6c8debbcb2a9117d0bcbba76195b1acb33fe;p=catagits%2FGitalist.git diff --git a/root/repository/search.tt2 b/root/repository/search.tt2 index 901d4d6..5e4d446 100755 --- a/root/repository/search.tt2 +++ b/root/repository/search.tt2 @@ -9,6 +9,12 @@ [% END %] +[% IF results.size == 0 %] +
+No results found for [% c.req.param('text') | html %]. +
+[% ELSE %] + [% PROCESS shortlog_table_headfoot type = 'head' %] @@ -16,14 +22,14 @@ - - + [% 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 @@ -32,4 +38,6 @@
\ No newline at end of file + + +[% END %]