Showing 3 changed files with 81 additions and 50 deletions
+33 -1
public/css/bootstrap.css
... ...
@@ -1607,7 +1607,7 @@ button.close {
1607 1607
 
1608 1608
 .git-url-container input {
1609 1609
   width:550px;
1610
-  padding:4px 0 5px 5px;
1610
+  padding:5px 0 5px 5px;
1611 1611
   border:1px solid #d8d8d8;
1612 1612
 }
1613 1613
 
... ...
@@ -1679,3 +1679,35 @@ button.close {
1679 1679
 .commit-summary-right-container a {
1680 1680
   color:#445055;
1681 1681
 }
1682
+
1683
+.file-list li {
1684
+  border: 1px solid #c1dce9;
1685
+  border-top:none;
1686
+  padding:7px;
1687
+  overflow:hidden;
1688
+}
1689
+
1690
+.file-list li:last-child {
1691
+  border-radius: 3px;
1692
+}
1693
+
1694
+.file-list-name {
1695
+  width:25%;
1696
+  float:left;
1697
+}
1698
+
1699
+.file-list-commit {
1700
+  width:60%;
1701
+  float:left;
1702
+}
1703
+
1704
+.file-list-commit a {
1705
+  color:#888;
1706
+}
1707
+
1708
+.file-list-age {
1709
+  width:15%;
1710
+  float:left;
1711
+  text-align:right;
1712
+  color:#888
1713
+}
+2 -2
templates/include/branch_select.html.ep
... ...
@@ -20,11 +20,11 @@
20 20
   my $title;
21 21
   my $rev_short;
22 22
   if (defined $rev && length $rev == 40) {
23
-    $title = 'tree';
23
+    $title = 'Tree';
24 24
     $rev_short = substr($rev, 0, 10);
25 25
   }
26 26
   else {
27
-    $title = 'branch';
27
+    $title = 'Branch';
28 28
     $rev_short = $rev;
29 29
   }
30 30
   
+46 -47
templates/include/tree.html.ep
... ...
@@ -18,53 +18,52 @@
18 18
       <%= $commit->{age_string} %>
19 19
     </div>
20 20
   </div>
21
-  % for (my $i = 0; $i <@$trees; $i++) {
22
-    % my $last = $i == @$trees - 1;
23
-    <div class="border-gray <%= $last ? 'radius-bottom' : '' %>" style="padding:5px;font-size:90%;border-top:none;#eee;background:#f8f8f8;<%= $last ? '' : 'border-bottom:1px solid #eee;' %>">
24
-      <div>
25
-        <div class="row">
26
-          % my $tree = $trees->[$i];
27
-          % my $type = $tree->{type};
28
-          % my $name = $tree->{name};
29
-          % my $commit = $tree->{commit};
30
-          % my $mode_str = $tree->{mode_str};
31
-          
32
-          <div class="span3" style="width:170px">
33
-            % my $child_dir = defined $dir && length $dir ? join('/', $dir, $name) : $name;
34
-            % if ($mode_str eq 'm---------') {
35
-              <i class="icon-folder-open"></i>
36
-              <a href="<%= url_for("/$user/$project/submodule/$rev/$child_dir") %>">
37
-                <%= $name %>
38
-              </a>              
39
-            % } elsif ($type eq 'blob') {
40
-              % my $file = defined $dir && $dir ne '' ? "$dir/$name" : $name;
41
-              <i class="icon-file"></i>
42
-              <a href="<%= url_for("/$user/$project/blob/$rev/$file") %>">
43
-                <%= $name %>
44
-              </a>
45
-            % } elsif ($tree) {
46
-              <i class="icon-folder-close"></i>
47
-              <a href="<%= url_for("/$user/$project/tree/$rev/$child_dir") %>">
48
-                <%= $name %>
49
-              </a>
50
-            % }
51
-          </div>
52
-          <div class="span2" style="width:100px">
53
-            <span title="<%= $commit->{age_string_datetime_local} %>"><%= $commit->{age_string} %></span>
54
-          </div>
55
-          <div class="span6" style="width:610px">
56
-            <a class="font-black" href="<%= url_for("/$user/$project/commit/$commit->{id}") %>">
57
-              <%= $commit->{title_short} %>
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 %>
58 45
             </a>
59
-            % if (app->config->{basic}{show_ignore_space_change_link}) {
60
-              (<a style="font-size:90%;color:#9999FF" href="<%= url_for("/$user/$project/commit/$commit->{id}?w=") %>">
61
-                ignore space
62
-              </a>)
63
-            % }
64
-            [<span style="color:#4183c4" title="<%= $commit->{author_email} %>"><%= $commit->{author_name} %></span>]
65
-          </div>
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
+          % }
66 52
         </div>
67
-      </div>
68
-    </div>
69
-  % }
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>
70 69
 </div>