summaryrefslogtreecommitdiffstats
path: root/templates/user
diff options
context:
space:
mode:
authorFuXiaoHei <fuxiaohei@hexiaz.com>2014-04-09 20:10:56 +0800
committerFuXiaoHei <fuxiaohei@hexiaz.com>2014-04-09 20:10:56 +0800
commit721834a2673fed7fc21988b8e91a88a26bcef051 (patch)
tree8b08a3407ab3611d6eef5f866d587043ff414830 /templates/user
parenta991ebf5d0fe06c97be4b90b562e058ea2642de9 (diff)
downloadgitea-721834a2673fed7fc21988b8e91a88a26bcef051.tar.gz
gitea-721834a2673fed7fc21988b8e91a88a26bcef051.zip
change new-repo button to dropdown menu in dashboard page
Diffstat (limited to 'templates/user')
-rw-r--r--templates/user/dashboard.tmpl15
1 files changed, 14 insertions, 1 deletions
diff --git a/templates/user/dashboard.tmpl b/templates/user/dashboard.tmpl
index bc0853fb0d..39e277e3c9 100644
--- a/templates/user/dashboard.tmpl
+++ b/templates/user/dashboard.tmpl
@@ -29,7 +29,20 @@
<div id="feed-right" class="col-md-4">
<div class="panel panel-default repo-panel">
<div class="panel-heading">Your Repositories
- <a class="btn btn-success pull-right btn-sm" href="/repo/create"><i class="fa fa-plus-square"></i>New Repo</a>
+ <div class="btn-group pull-right" id="user-dashboard-repo-new">
+ <button type="button" class="btn btn-success btn-sm"><i class="fa fa-plus-square"></i>New</button>
+ <button type="button" class="btn btn-success btn-sm dropdown-toggle" data-toggle="dropdown">
+ <span class="caret"></span>
+ </button>
+ <div class="dropdown-menu dropdown-menu-right">
+ <ul class="list-unstyled">
+ <li><a href="/repo/create"><i class="fa fa-book"></i>Repository</a></li>
+ <li><a href="#"><i class="fa fa-clipboard"></i>Mirror</a></li>
+ <li><a href="#"><i class="fa fa-users"></i>Organization</a></li>
+ </ul>
+
+ </div>
+ </div>
</div>
<div class="panel-body">
<ul class="list-group">{{range .MyRepos}}