aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xpublic/css/gogs.css28
-rw-r--r--templates/user/dashboard.tmpl15
2 files changed, 41 insertions, 2 deletions
diff --git a/public/css/gogs.css b/public/css/gogs.css
index da2a7fd1a2..bf39ea39ce 100755
--- a/public/css/gogs.css
+++ b/public/css/gogs.css
@@ -444,6 +444,32 @@ html, body {
margin-right: 1em;
}
+#user-dashboard-repo-new .btn-sm.dropdown-toggle {
+ padding: 3px 8px;
+}
+
+#user-dashboard-repo-new .dropdown-menu {
+ padding: 0;
+ margin: 0;
+}
+
+#user-dashboard-repo-new ul {
+ margin: 0;
+ width: 200px;
+}
+
+#user-dashboard-repo-new li a {
+ line-height: 36px;
+ display: block;
+ padding: 0 18px;
+ color: #444;
+}
+
+#user-dashboard-repo-new li a:hover {
+ background: #0093c4;
+ color: #FFF;
+}
+
/* gogits repo single page */
#body-nav.repo-nav {
@@ -1372,6 +1398,6 @@ html, body {
margin: 16px 0;
}
-#release-preview{
+#release-preview {
margin: 6px 0;
} \ No newline at end of file
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}}