From 124c4d72bfd911b7966cfd513d469b3aff8ac086 Mon Sep 17 00:00:00 2001 From: FuXiaoHei Date: Tue, 25 Mar 2014 22:42:45 +0800 Subject: [PATCH] issue list in repo --- public/css/gogs.css | 66 ++++++++++++++++++++++++++++++++++++++++++- routers/repo/issue.go | 2 +- 2 files changed, 66 insertions(+), 2 deletions(-) diff --git a/public/css/gogs.css b/public/css/gogs.css index eeead844ae..ae970b4799 100755 --- a/public/css/gogs.css +++ b/public/css/gogs.css @@ -1013,10 +1013,74 @@ html, body { margin-bottom: 10px; } -#issue-create-form .md-help{ +#issue-create-form .md-help { margin-top: 6px; } +#issue .filter-list a { + padding: 6px 10px; + font-size: 14px; + display: block; + margin-bottom: 6px; + border-radius: 3px; + color: #444; +} + +#issue .filter-list a:hover { + background-color: #DDD; + text-decoration: none; +} + +#issue .filter-list a.active { + background-color: #4183c4; + color: #FFF; +} + +#issue .filter-option { + margin-bottom: 12px; +} + +#issue .list-group .list-group-item { + background-color: #FFF; +} + +#issue .list-group .list-group-item.unread { + border-left: 2px solid #DD4B39; +} + +#issue .issue-item .title { + margin-bottom: 16px; +} + +#issue .issue-item h5.title a { + color: #444; +} + +#issue .issue-item.unread h5 { + font-weight: bold; +} + +#issue .issue-item .info span { + margin-right: 12px; + color: #888; + line-height: 20px; +} + +#issue .issue-item .info a, #issue .issue-item .number { + color: #888; +} + +#issue .issue-item .number { + margin-top: 8px; +} + +#issue .issue-item .avatar { + margin-right: 8px; + width: 20px; + height: 20px; + vertical-align: top; +} + /* wrapper and footer */ #wrapper { diff --git a/routers/repo/issue.go b/routers/repo/issue.go index d54582a2a0..ab070d724c 100644 --- a/routers/repo/issue.go +++ b/routers/repo/issue.go @@ -35,7 +35,7 @@ func Issues(ctx *middleware.Context, params martini.Params) { params["branchname"] = "master" } ctx.Data["Branchname"] = params["branchname"] - ctx.HTML(200, "repo/issues") + ctx.HTML(200, "issue/repo") } func CreateIssue(ctx *middleware.Context, params martini.Params, form auth.CreateIssueForm) {