summaryrefslogtreecommitdiffstats
path: root/templates/user/dashboard.tmpl
diff options
context:
space:
mode:
authorfuxiaohei <fuxiaohei@vip.qq.com>2014-06-22 14:10:12 +0800
committerfuxiaohei <fuxiaohei@vip.qq.com>2014-06-22 14:10:12 +0800
commitbf703ef61761fc4b09e3cb95672869520eccbc39 (patch)
tree40dd09144366c9428869ca02c3dd50183d5cccf0 /templates/user/dashboard.tmpl
parentc280415e0b449b420f4540886b8e16ae3c9e6454 (diff)
downloadgitea-bf703ef61761fc4b09e3cb95672869520eccbc39.tar.gz
gitea-bf703ef61761fc4b09e3cb95672869520eccbc39.zip
add dashboard context switch button
Diffstat (limited to 'templates/user/dashboard.tmpl')
-rw-r--r--templates/user/dashboard.tmpl14
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/user/dashboard.tmpl b/templates/user/dashboard.tmpl
index 5cda6722f0..c44ba36278 100644
--- a/templates/user/dashboard.tmpl
+++ b/templates/user/dashboard.tmpl
@@ -2,6 +2,20 @@
{{template "base/navbar" .}}
<div id="body-nav">
<div class="container">
+ <div class="btn-group pull-left" id="dashboard-switch">
+ <button type="button" class="btn btn-default">
+ <img src="//1.gravatar.com/avatar/f72f7454ce9d710baa506394f68f4132?s=28" alt="user-avatar" title="username">
+ fuxiaohei
+ </button>
+ <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
+ <span class="caret"></span>
+ </button>
+ <div class="dropdown-menu clone-group-btn no-propagation">
+ <ul id="dashboard-switch-menu" class="list-unstyled">
+ <li class="checked"><a href="#"><i class="fa fa-check"></i> gogits/gogs</a></li>
+ </ul>
+ </div>
+ </div>
<ul class="nav nav-pills pull-right">
<li class="active"><a href="/">Feed</a></li>
<li><a href="/issues">Issues</a></li>