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