... | ... |
@@ -1,10 +1,49 @@ |
1 |
-% use File::Basename 'basename'; |
|
2 |
-% my $project = stash('project'); |
|
3 |
-% $project = basename $project if defined $project; |
|
1 |
+%= stylesheet begin |
|
4 | 2 |
|
5 |
-<div class="page_header"> |
|
6 |
- <a href="<%= config('logo_link') %>"> |
|
7 |
- <img src="<%= url_for('/git-logo.png') %>" class="logo"/> |
|
8 |
- </a> |
|
9 |
- <%= $project ? "$project /" : '' %> <a href="#"><%= $title %></a> |
|
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 |
+ } |
|
33 |
+% end |
|
34 |
+ |
|
35 |
+<div class="header"> |
|
36 |
+ <div class="panel"> |
|
37 |
+ <ul class="left"> |
|
38 |
+ <li><a href="<%= url_for('/') %>">Home</a></li> |
|
39 |
+ </ul> |
|
40 |
+ <ul class="right"> |
|
41 |
+ <li><a href="<%= url_for("/logout") %>"><s>Sign out</s></a></li> |
|
42 |
+ <li> |
|
43 |
+ <a href="<%= url_for("/setting/profile") %>"><s>Account setting</s></a> |
|
44 |
+ </li> |
|
45 |
+ <li><a href="<%= url_for("/new") %>"><s>Create a new repo</s></a></li> |
|
46 |
+ <li><a href="<%= url_for("/$user") %>"><%= $user %></a></li> |
|
47 |
+ </ul> |
|
48 |
+ </div> |
|
10 | 49 |
</div> |
... | ... |
@@ -91,7 +91,7 @@ |
91 | 91 |
} |
92 | 92 |
% end |
93 | 93 |
|
94 |
- %= include '/include/new_header'; |
|
94 |
+ %= include '/include/header'; |
|
95 | 95 |
|
96 | 96 |
<div class="main_panel"> |
97 | 97 |
%= include '/include/sub_header'; |
... | ... |
@@ -133,7 +133,7 @@ |
133 | 133 |
} |
134 | 134 |
% end |
135 | 135 |
|
136 |
- %= include '/include/new_header'; |
|
136 |
+ %= include '/include/header'; |
|
137 | 137 |
|
138 | 138 |
<div class="main_panel"> |
139 | 139 |
%= include '/include/sub_header'; |
... | ... |
@@ -8,7 +8,7 @@ |
8 | 8 |
|
9 | 9 |
% layout 'new_common'; |
10 | 10 |
%= include '/css/common'; |
11 |
- %= include '/include/new_header'; |
|
11 |
+ %= include '/include/header'; |
|
12 | 12 |
|
13 | 13 |
<div class="main_panel"> |
14 | 14 |
%= include '/include/sub_header'; |
... | ... |
@@ -103,7 +103,7 @@ |
103 | 103 |
|
104 | 104 |
% end |
105 | 105 |
|
106 |
- %= include '/include/new_header'; |
|
106 |
+ %= include '/include/header'; |
|
107 | 107 |
|
108 | 108 |
<div class="main_panel"> |
109 | 109 |
%= include '/include/sub_header'; |
... | ... |
@@ -82,7 +82,7 @@ |
82 | 82 |
}); |
83 | 83 |
% end |
84 | 84 |
|
85 |
- %= include '/include/new_header'; |
|
85 |
+ %= include '/include/header'; |
|
86 | 86 |
|
87 | 87 |
<div class="main_panel"> |
88 | 88 |
%= include '/include/sub_header'; |
... | ... |
@@ -192,7 +192,7 @@ |
192 | 192 |
} |
193 | 193 |
% end |
194 | 194 |
|
195 |
- %= include '/include/new_header'; |
|
195 |
+ %= include '/include/header'; |
|
196 | 196 |
|
197 | 197 |
<div class="main_panel"> |
198 | 198 |
%= include '/include/sub_header'; |
... | ... |
@@ -197,7 +197,7 @@ |
197 | 197 |
} |
198 | 198 |
% end |
199 | 199 |
|
200 |
- %= include '/include/new_header'; |
|
200 |
+ %= include '/include/header'; |
|
201 | 201 |
|
202 | 202 |
<div class="main_panel"> |
203 | 203 |
%= include '/include/sub_header'; |