cleanup
|
1 |
<% |
2 |
my $dir = stash('dir'); |
|
fix mail bug
|
3 |
my $commit_author_email = $commit->{author_email}; |
add user page link from user...
|
4 |
my $commit_author_id = app->dbi->model('user')->select( |
5 |
'id', |
|
fix mail bug
|
6 |
where => {email => $commit_author_email} |
add user page link from user...
|
7 |
)->value; |
cleanup
|
8 |
%> |
9 | ||
complete blob page design
|
10 |
<div> |
improve tree header design
|
11 |
<div class="commit-summary"> |
12 |
<div class="commit-summary-left-container"> |
|
add user page link from user...
|
13 |
<span class="commit-summary-author" title="<%= $commit->{author_email} %>"> |
14 |
% if (defined $commit_author_id) { |
|
15 |
<a href="<%= url_for("/$commit_author_id") %>"><%= $commit_author_id %></a> |
|
16 |
% } else { |
|
17 |
<%= $commit->{author_name} %> |
|
18 |
% } |
|
19 |
</span> |
|
improve tree header design
|
20 |
<a href="<%= url_for("/$user/$project/commit/$rev") %>"> |
21 |
<%= $commit->{title} %> |
|
22 |
</a> |
|
23 |
</div> |
|
24 |
<div class="commit-summary-right-container"> |
|
25 |
Latest commit |
|
26 |
<a href="<%= url_for("/$user/$project/commit/$commit->{id}") %>"> |
|
27 |
<%= substr($commit->{id}, 0, 7) %> |
|
28 |
</a> |
|
29 |
<%= $commit->{age_string} %> |
|
30 |
</div> |
|
added tree page
|
31 |
</div> |
improve tree design
|
32 |
<ul class="file-list"> |
33 |
% for (my $i = 0; $i <@$trees; $i++) { |
|
34 |
<% |
|
35 |
my $last = $i == @$trees - 1; |
|
36 |
my $tree = $trees->[$i]; |
|
37 |
my $type = $tree->{type}; |
|
38 |
my $name = $tree->{name}; |
|
39 |
my $commit = $tree->{commit}; |
|
40 |
my $mode_str = $tree->{mode_str}; |
|
41 |
%> |
|
42 |
|
|
43 |
<li> |
|
44 |
<div class="file-list-name"> |
|
45 |
% my $child_dir = defined $dir && length $dir ? join('/', $dir, $name) : $name; |
|
46 |
% if ($mode_str eq 'm---------') { |
|
47 |
<i class="icon-folder-close"></i> |
|
48 |
<a href="<%= url_for("/$user/$project/submodule/$rev/$child_dir") %>"> |
|
49 |
<%= $name %> |
|
improve submodule design
|
50 |
</a> |
51 |
<small>[submodule]</small> |
|
improve tree design
|
52 |
% } elsif ($type eq 'blob') { |
53 |
% my $file = defined $dir && $dir ne '' ? "$dir/$name" : $name; |
|
54 |
<i class="icon-file"></i> |
|
55 |
<a href="<%= url_for("/$user/$project/blob/$rev/$file") %>"> |
|
56 |
<%= $name %> |
|
cleanup
|
57 |
</a> |
improve tree design
|
58 |
% } elsif ($tree) { |
59 |
<i class="icon-folder-close"></i> |
|
60 |
<a href="<%= url_for("/$user/$project/tree/$rev/$child_dir") %>"> |
|
61 |
<%= $name %> |
|
62 |
</a> |
|
63 |
% } |
|
cleanup
|
64 |
</div> |
improve tree design
|
65 |
<div class="file-list-commit"> |
66 |
<a href="<%= url_for("/$user/$project/commit/$commit->{id}") %>"> |
|
67 |
<%= $commit->{title_short} %> |
|
68 |
</a> |
|
69 |
</div> |
|
70 |
<div class="file-list-age"> |
|
71 |
<span title="<%= $commit->{age_string_datetime_local} %>"><%= $commit->{age_string} %></span> |
|
72 |
</div> |
|
73 |
</li> |
|
74 |
% } |
|
75 |
</ul> |
|
added tree page
|
76 |
</div> |