From 9047cadcd33f95eebafa2f794b895c8406eb80c5 Mon Sep 17 00:00:00 2001 From: FuXiaoHei Date: Fri, 28 Mar 2014 21:42:28 +0800 Subject: [PATCH] issue close and reopen block ui --- public/css/gogs.css | 21 ++++++++++++++++++++- templates/issue/view.tmpl | 20 ++++++++++++++++++-- 2 files changed, 38 insertions(+), 3 deletions(-) diff --git a/public/css/gogs.css b/public/css/gogs.css index d4976460e6..d6c117c846 100755 --- a/public/css/gogs.css +++ b/public/css/gogs.css @@ -856,6 +856,7 @@ html, body { .commit-list .sha a { font-family: Consolas, Menlo, Monaco, "Lucida Console", monospace; + font-size: 14px; } .guide-box pre, .guide-box .input-group { @@ -1165,7 +1166,7 @@ html, body { font-weight: normal; } -#issue .issue-child .panel-heading .user { +#issue .issue-child .panel-heading .user,#issue .issue-closed a.user,#issue .issue-opened a.user { font-weight: bold; } @@ -1173,6 +1174,10 @@ html, body { border-color: #CCC; } +#issue .issue-is-closed .issue-line{ + display: none; +} + #issue .issue-head .info .btn { margin-top: -8px; margin-left: 8px; @@ -1188,6 +1193,20 @@ html, body { width: 60%; } +#issue .issue-closed .issue-content,#issue .issue-opened .issue-content{ + line-height: 42px; +} + +#issue .issue-closed{ + border-bottom: 3px solid #CCC; + margin-bottom: 24px; + padding-bottom: 24px; +} + +#issue .issue-closed .btn-danger,#issue .issue-opened .btn-success{ + margin: 0 .8em; +} + /* wrapper and footer */ #wrapper { diff --git a/templates/issue/view.tmpl b/templates/issue/view.tmpl index 4d053930b9..609974f413 100644 --- a/templates/issue/view.tmpl +++ b/templates/issue/view.tmpl @@ -4,7 +4,7 @@ {{template "repo/toolbar" .}}
-
+
#{{.Issue.Index}}
@@ -44,6 +44,22 @@
{{end}} +
+ +
+ {user.name} + Closed this + {close.time} +
+
+
+ +
+ {user.name} + Reopened this + {close.time} +
+

@@ -71,7 +87,7 @@
-    +