From 63d2f74c21b28cf3e88d507c489f1ab7486fd634 Mon Sep 17 00:00:00 2001 From: FuXiaoHei Date: Tue, 11 Mar 2014 12:49:09 +0800 Subject: [PATCH] begin dashboard ui --- public/css/gogs.css | 44 +++++++++++++++++++++++++++++++++++ templates/repo/create.tmpl | 13 +++++++++++ templates/user/dashboard.tmpl | 25 +++++++++++++++++++- 3 files changed, 81 insertions(+), 1 deletion(-) diff --git a/public/css/gogs.css b/public/css/gogs.css index 05e30810..322c031d 100755 --- a/public/css/gogs.css +++ b/public/css/gogs.css @@ -36,6 +36,12 @@ body { cursor: pointer; } +.panel-default .panel-heading{ + background-color: #FAFAFA; + border-bottom: 1px solid #DDD; + font-weight: bold; +} + /* gogits nav header */ .gogs-masthead { background-color: #428bca; @@ -131,6 +137,35 @@ body { margin-top: 50px; } +#gogs-body-nav{ + margin-top: 52px; + margin-bottom: -50px; + background-color: #FFF; + border-bottom: 1px solid #BBB; + height: 66px +} + +#gogs-body-nav .nav{ + font-size: 14px; + margin-top: 12px; +} + +#gogs-body-nav .nav-pills li a{ + color: #444; +} + +#gogs-body-nav .nav-pills li.active a{ + font-weight: bold; + border-bottom: 2px solid #d26911; + background-color: transparent; + color: #444; +} + +#gogs-body-nav .nav-pills li:hover a{ + background-color: transparent; + text-decoration: underline; +} + /* gogits login card */ .gogs-card { margin: auto; @@ -300,4 +335,13 @@ body { #gogs-ssh-form textarea { height: 16em; +} +/* #gogs-feed */ + +#gogs-feed-left{ + padding-left: 0; +} + +#gogs-feed-right .repo-panel .panel-heading .btn{ + margin-top: -4px; } \ No newline at end of file diff --git a/templates/repo/create.tmpl b/templates/repo/create.tmpl index e7a36334..d8267d7b 100644 --- a/templates/repo/create.tmpl +++ b/templates/repo/create.tmpl @@ -49,6 +49,19 @@ +
+ +
+ +
+
+
diff --git a/templates/user/dashboard.tmpl b/templates/user/dashboard.tmpl index bde541a6..3045b033 100644 --- a/templates/user/dashboard.tmpl +++ b/templates/user/dashboard.tmpl @@ -1,6 +1,29 @@ {{template "base/head" .}} {{template "base/navbar" .}} +
+
+ +

New Feed

+
+
- Website is still in the progress of building...please come back later! {{.SignedUserName}} is logged! +
+ Website is still in the progress of building...please come back later! {{.SignedUserName}} is logged! +
+
+
+
Your Repositories + New Repo +
+
+ repo-list +
+
+
{{template "base/footer" .}} \ No newline at end of file