... | ... |
@@ -1,7 +1,7 @@ |
1 | 1 |
2.1 () |
2 | 2 |
- default login session time become 2 weeks and delete save check box. |
3 | 3 |
- Fix commits page author links. |
4 |
- |
|
4 |
+ - add admin page link. |
|
5 | 5 |
2.0 (7 May 2016) |
6 | 6 |
- drop Perl 5.8 support, now require Perl 5.10.1 |
7 | 7 |
- use own temparaly directory when creating repositoy with readme file. Now not use /tmp. |
... | ... |
@@ -47,7 +47,12 @@ |
47 | 47 |
</div> |
48 | 48 |
<!-- Logined as <%= $session_user->{id} %> --> |
49 | 49 |
<div class="header-login-container"> |
50 |
- <i class="icon-user"></i><a href="<%= url_for("/$session_user->{id}") %>"><%= $session_user->{id} %></a> |
|
50 |
+ <i class="icon-user"></i> |
|
51 |
+ % if ($api->logined_admin) { |
|
52 |
+ <a href="<%= url_for("/_admin") %>"><%= $session_user->{id} %></a> |
|
53 |
+ % } else { |
|
54 |
+ <a href="<%= url_for("/$session_user->{id}") %>"><%= $session_user->{id} %></a> |
|
55 |
+ % } |
|
51 | 56 |
</div> |
52 | 57 |
% } else { |
53 | 58 |
<div class="header-btn-container"> |