... | ... |
@@ -30,7 +30,7 @@ |
30 | 30 |
<a href="<%= url_for("/$user/$project/tags") %>"> |
31 | 31 |
Tags |
32 | 32 |
% if ($display eq 'tags') { |
33 |
- <span><%= $tags_count %></span> |
|
33 |
+ <span class="badge"><%= $tags_count %></span> |
|
34 | 34 |
% } |
35 | 35 |
</a> |
36 | 36 |
</li> |
... | ... |
@@ -17,7 +17,7 @@ |
17 | 17 |
.font-white { |
18 | 18 |
color: white; |
19 | 19 |
} |
20 |
- |
|
20 |
+ |
|
21 | 21 |
/* Background color */ |
22 | 22 |
.bk-blue-light { |
23 | 23 |
background-color:#E6F1F6; |
... | ... |
@@ -20,96 +20,43 @@ |
20 | 20 |
%> |
21 | 21 |
|
22 | 22 |
% layout 'common'; |
23 |
- %= include '/css/common'; |
|
24 |
- |
|
25 |
- %= stylesheet begin |
|
26 |
- /* h2 */ |
|
27 |
- h2 { |
|
28 |
- font-size:120%; |
|
29 |
- padding-bottom:15px; |
|
30 |
- } |
|
31 |
- |
|
32 |
- /* tags number */ |
|
33 |
- .tags_number { |
|
34 |
- color:#666; |
|
35 |
- padding-bottom:5px; |
|
36 |
- } |
|
37 |
- |
|
38 |
- /* tags */ |
|
39 |
- .tag { |
|
40 |
- border-bottom:1px solid #E5E5E5; |
|
41 |
- padding:5px; |
|
42 |
- padding-left:28px; |
|
43 |
- background-image:url(<%= url_for('/image/tag.png') %>); |
|
44 |
- text-decoration:none; |
|
45 |
- background-repeat:no-repeat; |
|
46 |
- background-position:5px 7px; |
|
47 |
- } |
|
48 |
- .tag_last { |
|
49 |
- border-bottom:none; |
|
50 |
- } |
|
51 |
- .tag .ttop { |
|
52 |
- padding-bottom:3px; |
|
53 |
- overflow:hidden; |
|
54 |
- } |
|
55 |
- .tag .tname { |
|
56 |
- font-size:120%; |
|
57 |
- font-weight:bold; |
|
58 |
- float:left; |
|
59 |
- } |
|
60 |
- .tag .tarchive { |
|
61 |
- float:right; |
|
62 |
- } |
|
63 |
- .tag .tarchive a { |
|
64 |
- color:#4183C4; |
|
65 |
- } |
|
66 |
- .tag .tcomment { |
|
67 |
- color:#999; |
|
68 |
- } |
|
69 |
- % end |
|
70 |
- |
|
71 |
- %= javascript begin |
|
72 |
- $(document).ready(function () { |
|
73 |
- $(".tag").on({ |
|
74 |
- "mouseenter": function () { |
|
75 |
- $(this).find('a.archive').css('display', 'inline'); |
|
76 |
- }, |
|
77 |
- "mouseleave": function () { |
|
78 |
- $(this).find('a.archive').css('display', 'none'); |
|
79 |
- } |
|
80 |
- }) |
|
81 |
- }); |
|
82 |
- % end |
|
83 | 23 |
|
84 | 24 |
%= include '/include/header'; |
85 | 25 |
|
86 |
- <div class="main_panel"> |
|
87 |
- %= include '/include/sub_header'; |
|
26 |
+ <div class="container"> |
|
27 |
+ %= include '/include/project_header'; |
|
88 | 28 |
%= include '/include/code_menu', display => 'tags', tags_count => scalar @$tags; |
89 | 29 |
|
90 |
- <div class="tags"> |
|
30 |
+ <div> |
|
91 | 31 |
% for (my $i = 0; $i < @$tags; $i++) { |
92 | 32 |
% my $tag = $tags->[$i]; |
93 | 33 |
% my $name = $tag->{name}; |
94 | 34 |
% my $tag_class = $i == @$tags - 1 ? 'tag tag_last' : 'tag'; |
95 |
- <div class="<%= $tag_class %>"> |
|
96 |
- <div class="ttop"> |
|
97 |
- <div class="tname"><%= $name %></div> |
|
98 |
- <div class="tarchive"> |
|
99 |
- <a class="ubar" href="<%= url_for("/$user/$project/archive/$name.tar.gz") %>">Source code (tar.gz)</a> |
|
100 |
- <a class="ubar" href="<%= url_for("/$user/$project/archive/$name.zip") %>">Source code (zip)</a> |
|
101 |
- <a class="ubar" href="<%= url_for("/$user/$project/tree/$name") %>">Browse code</a> |
|
35 |
+ <div class="row"> |
|
36 |
+ <div class="span12 padding-default border-bottom-gray"> |
|
37 |
+ <div class="row"> |
|
38 |
+ <div class="span2"> |
|
39 |
+ <a class="font-black" href="<%= url_for("/$user/$project/tree/$name") %>"> |
|
40 |
+ <b><%= $name %></b> |
|
41 |
+ </a> |
|
42 |
+ </div> |
|
43 |
+ <div class="span10"> |
|
44 |
+ % my $commit_id = $tag->{commit}{id}; |
|
45 |
+ <a class="muted" href="<%= url_for("/$user/$project/commit/$commit_id") %>"> |
|
46 |
+ <i class="icon-share-alt"></i> |
|
47 |
+ <%= substr($commit_id, 0, 7) %> |
|
48 |
+ </a> |
|
49 |
+ <a class="muted" href="<%= url_for("/$user/$project/archive/$name.zip") %>"> |
|
50 |
+ <i class="icon-file"></i> |
|
51 |
+ zip |
|
52 |
+ </a> |
|
53 |
+ <a class="muted" href="<%= url_for("/$user/$project/archive/$name.tar.gz") %>"> |
|
54 |
+ <i class="icon-file"></i> |
|
55 |
+ tar.gz |
|
56 |
+ </a> |
|
57 |
+ </div> |
|
102 | 58 |
</div> |
103 | 59 |
</div> |
104 |
- <div class="tcomment"> |
|
105 |
- % if ($tag->{type} eq 'tag') { |
|
106 |
- <%= $tag->{subject} %> |
|
107 |
- % } else { |
|
108 |
- % for my $comment (@{$tag->{commit}{comment}}) { |
|
109 |
- <p><%= $comment %></p> |
|
110 |
- % } |
|
111 |
- % } |
|
112 |
- </div> |
|
113 | 60 |
</div> |
114 | 61 |
% } |
115 | 62 |
</div> |