Showing 1 changed files with 60 additions and 7 deletions
+60 -7
templates/main/compare.html.ep
... ...
@@ -29,6 +29,11 @@
29 29
   
30 30
   # Global variable
31 31
   stash(user => $user, project => $project);
32
+  
33
+  my $tags_count = stash('tags_count') || 0;
34
+  my $branches_count = stash('branches_count') || 0;
35
+  my $display = stash('display') || '';
36
+
32 37
 %>
33 38
 
34 39
 % layout 'common';
... ...
@@ -66,6 +71,52 @@
66 71
     .compare_tabs .ccommits {
67 72
       font-weight:bold;
68 73
     }
74
+
75
+    /* Compare menu */
76
+    .compare_tabs {
77
+      margin-top:7px;
78
+      margin-bottom:15px;
79
+      height:30px;
80
+      overflow:hidden;
81
+    }
82
+    .compare_tabs .cright {
83
+      text-align:right;
84
+      overflow:hidden;
85
+      height:27px;
86
+    }
87
+    .compare_tabs .cright li {
88
+      float:left;
89
+      padding:5px 10px;
90
+      height:27px;
91
+    }
92
+    .compare_tabs .cunder {
93
+      border-top:1px solid #E5E5E5;
94
+      margin-top:-1px;
95
+    }
96
+    .compare_tabs a {
97
+      color:#666;
98
+    }
99
+    .compare_tabs .ccount {
100
+      display:inline-block;
101
+      font-weight:normal;
102
+      border:1px solid #CCC;
103
+      background-color:#EEE;
104
+      padding:2px;
105
+      padding-left:5px;
106
+      padding-right:5px;
107
+      border-radius:9px;
108
+      font-size:75%;
109
+    }
110
+    
111
+    .compare_tabs .ccommits {
112
+      border:1px solid #E5E5E5;
113
+      border-bottom:none;
114
+      background-color:white;
115
+      font-weight:bold;
116
+    }
117
+    .compare_tabs .ccommits a {
118
+      color:#333
119
+    }
69 120
   % end
70 121
 
71 122
   %= include '/include/header';
... ...
@@ -79,13 +130,15 @@
79 130
       <div class="cdate">Last commit a year ago</div>
80 131
       <div class="ctarget">master ... next</div>
81 132
     </div>
82
-    
83
-    <ul class="compare_tabs">
84
-      <li class="ccommits">Commits</li>
85
-      <li class="cchanged">Files Changed</li>
86
-      <li class="ccomment">Commit Comments</li>
87
-    </ul>
88
-    
133
+
134
+    <div class="compare_tabs">
135
+      <ul class="cright">
136
+        <li class="ccommits"><a href="<%= url_for %>">Commits</a></li>
137
+        <li class="cchanged"><a href="<%= url_for . "#files_bucket" %>">Files Changed</a></li>
138
+      </ul>
139
+      <div class="cunder"></div>
140
+    </div>
141
+      
89 142
     <div class="commits_number">
90 143
       Showing 47 commits by 1 author.
91 144
     </div>