... | ... |
@@ -167,6 +167,7 @@ sub startup { |
167 | 167 |
|
168 | 168 |
# File cache |
169 | 169 |
$git->search_projects; |
170 |
+ |
|
170 | 171 |
} |
171 | 172 |
|
172 | 173 |
1; |
... | ... |
@@ -1,5 +1,6 @@ |
1 | 1 |
%= stylesheet begin |
2 |
- /* reset */ |
|
2 |
+ |
|
3 |
+ /* Reset */ |
|
3 | 4 |
* { |
4 | 5 |
margin:0; |
5 | 6 |
padding:0; |
... | ... |
@@ -15,72 +16,13 @@ |
15 | 16 |
a.ubar:hover { |
16 | 17 |
text-decoration:underline; |
17 | 18 |
} |
18 |
- |
|
19 |
- /* Header */ |
|
20 |
- .header { |
|
21 |
- background-color:#F8F8FF; |
|
22 |
- margin-bottom:10px; |
|
23 |
- border-bottom:1px solid blue; |
|
24 |
- height:40px; |
|
25 |
- } |
|
26 |
- .header_panel { |
|
27 |
- width:900px; |
|
28 |
- margin:auto; |
|
29 |
- overflow:hidden; |
|
30 |
- } |
|
31 |
- .header_left { |
|
32 |
- width:400px; |
|
33 |
- } |
|
34 |
- .header_left li { |
|
35 |
- float:left; |
|
36 |
- padding:10px; |
|
37 |
- } |
|
38 |
- .header_right li{ |
|
39 |
- padding:10px; |
|
40 |
- float:right; |
|
41 |
- } |
|
42 |
- .header_right li a{ |
|
43 |
- display:block; |
|
44 |
- } |
|
45 | 19 |
|
46 |
- /* User and repository name */ |
|
47 |
- .user_rep { |
|
48 |
- font-size:140%; |
|
49 |
- font-weight:bold; |
|
50 |
- margin-top:15px; |
|
51 |
- margin-bottom:15px; |
|
52 |
- } |
|
53 |
- |
|
54 | 20 |
/* Main panel */ |
55 | 21 |
.main_panel { |
56 | 22 |
width:900px; |
57 | 23 |
margin:5px auto; |
58 | 24 |
} |
59 | 25 |
|
60 |
- /* Main menu */ |
|
61 |
- .main_menu { |
|
62 |
- border:1px solid gray; |
|
63 |
- border-left:none; |
|
64 |
- list-style-type: none; |
|
65 |
- padding-left:0px; |
|
66 |
- background-color:#F5F5F5; |
|
67 |
- overflow:hidden; |
|
68 |
- height:36px; |
|
69 |
- } |
|
70 |
- .main_menu li { |
|
71 |
- float:left; |
|
72 |
- text-align:center; |
|
73 |
- width:14%; |
|
74 |
- border-left:1px solid gray; |
|
75 |
- } |
|
76 |
- |
|
77 |
- .main_menu a { |
|
78 |
- display:block; |
|
79 |
- width:100%; |
|
80 |
- height:100%; |
|
81 |
- padding:10px 0px; |
|
82 |
- } |
|
83 |
- |
|
84 | 26 |
/* Code menu */ |
85 | 27 |
.code_menu { |
86 | 28 |
margin-top:7px; |
... | ... |
@@ -1,12 +1,43 @@ |
1 | 1 |
%= stylesheet begin |
2 | 2 |
|
3 |
+ /* Header */ |
|
4 |
+ .header { |
|
5 |
+ background-color:#F3F3F3; |
|
6 |
+ margin-bottom:10px; |
|
7 |
+ border-bottom:1px solid #E5E5E5; |
|
8 |
+ height:40px; |
|
9 |
+ } |
|
10 |
+ .header .panel { |
|
11 |
+ width:900px; |
|
12 |
+ margin:auto; |
|
13 |
+ overflow:hidden; |
|
14 |
+ } |
|
15 |
+ .header .left { |
|
16 |
+ width:400px; |
|
17 |
+ } |
|
18 |
+ .header li { |
|
19 |
+ padding:10px; |
|
20 |
+ } |
|
21 |
+ .header .left li { |
|
22 |
+ float:left; |
|
23 |
+ } |
|
24 |
+ .header .right li{ |
|
25 |
+ float:right; |
|
26 |
+ } |
|
27 |
+ .header a { |
|
28 |
+ color:#333; |
|
29 |
+ } |
|
30 |
+ .header a:hover { |
|
31 |
+ color:#4183C4; |
|
32 |
+ } |
|
3 | 33 |
% end |
34 |
+ |
|
4 | 35 |
<div class="header"> |
5 |
- <div class="header_panel"> |
|
6 |
- <ul class="header_left"> |
|
36 |
+ <div class="panel"> |
|
37 |
+ <ul class="left"> |
|
7 | 38 |
<li><a href="<%= url_for('/') %>">Home</a></li> |
8 | 39 |
</ul> |
9 |
- <ul class="header_right"> |
|
40 |
+ <ul class="right"> |
|
10 | 41 |
<li><a href="<%= url_for("/logout") %>"><s>Sign out</s></a></li> |
11 | 42 |
<li> |
12 | 43 |
<a href="<%= url_for("/setting/profile") %>"><s>Account setting</s></a> |
... | ... |
@@ -1,7 +1,45 @@ |
1 |
+%= stylesheet begin |
|
2 |
+ |
|
3 |
+ /* User and repository name */ |
|
4 |
+ .user_rep { |
|
5 |
+ font-size:140%; |
|
6 |
+ margin-top:15px; |
|
7 |
+ margin-bottom:15px; |
|
8 |
+ } |
|
9 |
+ .user_rep a { |
|
10 |
+ color:#4183C4; |
|
11 |
+ } |
|
12 |
+ |
|
13 |
+ /* Main menu */ |
|
14 |
+ .main_menu { |
|
15 |
+ border:1px solid gray; |
|
16 |
+ border-left:none; |
|
17 |
+ list-style-type: none; |
|
18 |
+ padding-left:0px; |
|
19 |
+ background-color:#F5F5F5; |
|
20 |
+ overflow:hidden; |
|
21 |
+ height:36px; |
|
22 |
+ } |
|
23 |
+ .main_menu li { |
|
24 |
+ float:left; |
|
25 |
+ text-align:center; |
|
26 |
+ width:14%; |
|
27 |
+ border-left:1px solid gray; |
|
28 |
+ } |
|
29 |
+ |
|
30 |
+ .main_menu a { |
|
31 |
+ display:block; |
|
32 |
+ width:100%; |
|
33 |
+ height:100%; |
|
34 |
+ padding:10px 0px; |
|
35 |
+ } |
|
36 |
+ |
|
37 |
+% end |
|
38 |
+ |
|
1 | 39 |
<div class="user_rep"> |
2 | 40 |
<a href="<%= url_for("/$user") %>"><%= $user %></a> |
3 | 41 |
/ |
4 |
- <a href="<%= url_for %>"><%= $repository %></a> |
|
42 |
+ <a href="<%= url_for %>"><b><%= $repository %></b></a> |
|
5 | 43 |
</div> |
6 | 44 |
|
7 | 45 |
<ul class="main_menu"> |