From e34a2e22dc15a39e9ade9a5316b753944c55a14a Mon Sep 17 00:00:00 2001 From: Yuki Kimoto Date: Tue, 22 Apr 2014 09:54:04 +0900 Subject: [PATCH] improve search page design --- templates/auto/_search.html.ep | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/templates/auto/_search.html.ep b/templates/auto/_search.html.ep index 4cd77d2c..b5bf9899 100644 --- a/templates/auto/_search.html.ep +++ b/templates/auto/_search.html.ep @@ -32,7 +32,7 @@ $users ||= []; $projects ||= []; %> -% layout 'common'; +% layout 'common', title => 'Search'; %= include '/include/header', title => 'Gitprep'; @@ -81,8 +81,23 @@ % } else { % if (@$projects) { % for my $project (@$projects) { + % my $user = $project->{user_id}; + % my $project = $project->{name}; + % my $rev = app->manager->default_branch($user, $project); + % my $desc = app->git->description($user, $project); + % my $commit = app->git->get_commit($user, $project, $rev); +
- <%= $project->{name} %> +
+ "><%= $user %>/<%= $project %> +
+
+ <%= $desc %> +
+
+ <%= $commit->{age_string} %> +
+
% } % } else {