diff --git a/public/css/gogs.css b/public/css/gogs.css index ae970b479..06f593191 100755 --- a/public/css/gogs.css +++ b/public/css/gogs.css @@ -1026,6 +1026,14 @@ html, body { color: #444; } +#issue .filter-list a.sm{ + font-size: 13px; +} + +#issue .filter-list hr{ + border-color: #CCC; +} + #issue .filter-list a:hover { background-color: #DDD; text-decoration: none; @@ -1044,6 +1052,10 @@ html, body { background-color: #FFF; } +#issue .issue-item:hover{ + background-color: rgba(19, 95, 215, 0.03); +} + #issue .list-group .list-group-item.unread { border-left: 2px solid #DD4B39; } diff --git a/routers/user/user.go b/routers/user/user.go index a0321f187..d3ef96211 100644 --- a/routers/user/user.go +++ b/routers/user/user.go @@ -285,7 +285,8 @@ func Feeds(ctx *middleware.Context, form auth.FeedsForm) { } func Issues(ctx *middleware.Context) { - ctx.HTML(200, "user/issues") + ctx.Data["Title"] = "Your Issues" + ctx.HTML(200, "issue/user") } func Pulls(ctx *middleware.Context) { diff --git a/templates/issue/repo.tmpl b/templates/issue/repo.tmpl new file mode 100644 index 000000000..c348f27ff --- /dev/null +++ b/templates/issue/repo.tmpl @@ -0,0 +1,56 @@ +{{template "base/head" .}} +{{template "base/navbar" .}} +{{template "repo/nav" .}} +{{template "repo/toolbar" .}} +
+
+ + +
+
+{{template "base/footer" .}} \ No newline at end of file diff --git a/templates/issue/user.tmpl b/templates/issue/user.tmpl new file mode 100644 index 000000000..2cf957130 --- /dev/null +++ b/templates/issue/user.tmpl @@ -0,0 +1,70 @@ +{{template "base/head" .}} +{{template "base/navbar" .}} +
+
+ +

Your Issues

+
+
+
+ {{if .HasInfo}}
{{.InfoMsg}}
{{end}} +
+ + +
+
+{{template "base/footer" .}} \ No newline at end of file diff --git a/templates/repo/issues.tmpl b/templates/repo/issues.tmpl deleted file mode 100644 index df53197c3..000000000 --- a/templates/repo/issues.tmpl +++ /dev/null @@ -1,10 +0,0 @@ -{{template "base/head" .}} -{{template "base/navbar" .}} -{{template "repo/nav" .}} -{{template "repo/toolbar" .}} -
-
- issues -
-
-{{template "base/footer" .}} \ No newline at end of file diff --git a/templates/user/issues.tmpl b/templates/user/issues.tmpl deleted file mode 100644 index dd17b667d..000000000 --- a/templates/user/issues.tmpl +++ /dev/null @@ -1,17 +0,0 @@ -{{template "base/head" .}} -{{template "base/navbar" .}} -
-
- -

Issues

-
-
-
- {{if .HasInfo}}
{{.InfoMsg}}
{{end}} -
-{{template "base/footer" .}} \ No newline at end of file