Showing 4 changed files with 32 additions and 32 deletions
+1 -1
lib/Gitprep.pm
... ...
@@ -1,7 +1,7 @@
1 1
 use 5.008007;
2 2
 package Gitprep;
3 3
 
4
-our $VERSION = '1.00';
4
+our $VERSION = '0.01';
5 5
 
6 6
 use Mojo::Base 'Mojolicious';
7 7
 use Gitprep::Git;
+3
templates/css/common.html.ep
... ...
@@ -4,6 +4,9 @@
4 4
     margin:0;
5 5
     padding:0;
6 6
   }
7
+  li {
8
+    list-style: none;
9
+  }
7 10
   
8 11
   /* Header */
9 12
   .header {
+2 -2
templates/layouts/new_common.html.ep
... ...
@@ -1,7 +1,7 @@
1
+<!doctype html>
1 2
 <html>
2 3
   <head>
3
-    <meta http-equiv="content-type" content="text/html;charset=UTF-8">
4
-    <meta name="robots" content="index, nofollow" >
4
+    <meta charset="UTF-8">
5 5
     <title>Gitprep</title>
6 6
     <link rel="shortcut icon" href="<%= url_for('/git-favicon.png') %>" type="image/png" >
7 7
     %= javascript '/js/jquery-1.8.3.min.js';
+26 -29
templates/main/repository.html.ep
... ...
@@ -186,46 +186,41 @@
186 186
       margin-top:7px;
187 187
       margin-bottom:15px;
188 188
       height:30px;
189
-      border-bottom:1px solid black;
189
+      overflow:hidden;
190 190
     }
191 191
     .code_menu_left {
192 192
       width:700px;
193 193
       float:left;
194
+      overflow:hidden;
194 195
     }
195 196
     .code_menu_current_ref {
196 197
       float:left;
197
-      padding:5px 10px 5px 10px;
198
+      padding:5px 10px 10px 10px;
198 199
     }
199 200
     .code_menu_current_ref_button {
201
+      padding:1px;
200 202
       border:1px solid black;
201
-      /* padding:3px; */
202 203
     }
203
-    .code_menu_files {
204
+    .code_menu_left li {
204 205
       float:left;
205 206
       padding:5px 10px;
207
+    }
208
+    .code_menu_files {
206 209
       border:1px solid black;
207 210
       border-bottom:none;
208
-      z-index:5;
209
-      background-color:#F5F5F5;
210
-    }
211
-    .code_menu_commits {
212
-      float:left;
213
-      padding:5px 10px;
214
-    }
215
-    .code_menu_branches {
216
-      padding:5px;
217
-      float:left;
211
+      background-color:white;
212
+      font-weight:bold;
218 213
     }
219 214
     .code_menu_right {
220 215
       text-align:right;
216
+      overflow:hidden;
221 217
     }
222
-    .code_menu_tags {
218
+    .code_menu_right li {
223 219
       float:right;
224 220
       padding:5px 10px;
225 221
     }
226
-    .code_menu_downloads {
227
-      float:right;
228
-      padding:5px 10px;
222
+    .code_menu_under {
223
+      border-top:1px solid black;
229 224
     }
230 225
 
231 226
     /* Commit number */
... ...
@@ -290,22 +285,24 @@
290 285
     </div>
291 286
     
292 287
     <div class="code_menu">
293
-      <div class="code_menu_left">
294
-        <div class="code_menu_current_ref">
288
+      <ul class="code_menu_left">
289
+        <li class="code_menu_current_ref">
295 290
           <div class="code_menu_current_ref_button">
296 291
             branch <b>master</b>
297 292
           </div>
298
-        </div>
299
-        <a href="<%= url_for %>"><div class="code_menu_files">Files</div></a>
300
-        <a href="<%= url_for("/$user/$repository/commits/master") %>"><div class="code_menu_commits">Commits</div></a>
301
-        <a href="<%= url_for("/$user/$repository/branches") %>"><div class="code_menu_branches">Branches</div></a>
302
-      </div>
303
-      <div class="code_menu_right">
304
-        <a href="<%= url_for("/$user/$repository/downloads") %>"><div class="code_menu_downloads"><s>Downloads</s></div></a>
305
-        <a href="<%= url_for("/$user/$repository/tags") %>"><div class="code_menu_tags">Tags</div></a>
306
-      </div>
293
+        </li>
294
+        <li class="code_menu_files"><a href="<%= url_for %>">Files</a></li>
295
+        <li class="code_menu_commits"><a href="<%= url_for("/$user/$repository/commits/master") %>">Commits</a></li>
296
+        <li class="code_menu_branches"><a href="<%= url_for("/$user/$repository/branches") %>">Branches</a></li>
297
+      </ul>
298
+      <ul class="code_menu_right">
299
+        <li class="code_menu_downloads"><a href="<%= url_for("/$user/$repository/downloads") %>"><s>Downloads</s></a></li>
300
+        <li class="code_menu_tags"><a href="<%= url_for("/$user/$repository/tags") %>">Tags</a></li>
301
+      </ul>
302
+      <div class="code_menu_under"></div>
307 303
     </div>
308 304
     
305
+    
309 306
     <div class="commit_number">
310 307
       <div class="commit_number_left">
311 308
         <a href="<%= url_for %>"><%= $repository %></a>