summaryrefslogtreecommitdiffstats
path: root/routers/user
diff options
context:
space:
mode:
authorAntoine GIRARD <sapk@sapk.fr>2015-03-19 00:35:17 +0100
committerAntoine GIRARD <sapk@sapk.fr>2015-03-19 00:35:17 +0100
commit96a71aaed8b01e505fffbd740ffb492ce89cead1 (patch)
tree1d2471d760ddec010a4b8168d50640a39175b8d7 /routers/user
parente9c599b48ac77114f1d7761855c72a980c751b53 (diff)
downloadgitea-96a71aaed8b01e505fffbd740ffb492ce89cead1.tar.gz
gitea-96a71aaed8b01e505fffbd740ffb492ce89cead1.zip
Apply ng to issue dashboard
Diffstat (limited to 'routers/user')
-rw-r--r--routers/user/home.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/routers/user/home.go b/routers/user/home.go
index 86e907e349..3484e78050 100644
--- a/routers/user/home.go
+++ b/routers/user/home.go
@@ -261,8 +261,10 @@ func Email2User(ctx *middleware.Context) {
ctx.Redirect(setting.AppSubUrl + "/user/" + u.Name)
}
-func Issues(ctx *middleware.Context) {
- ctx.Data["Title"] = "Your Issues"
+func Issues(ctx *middleware.Context) {
+ ctx.Data["Title"] = ctx.Tr("issues")
+ ctx.Data["PageIsDashboard"] = true
+ ctx.Data["PageIsIssues"] = true
viewType := ctx.Query("type")
types := []string{"assigned", "created_by"}
@@ -386,5 +388,8 @@ func Issues(ctx *middleware.Context) {
} else {
ctx.Data["ShowCount"] = issueStats.OpenCount
}
+
+ ctx.Data["ContextUser"] = ctx.User
+
ctx.HTML(200, ISSUES)
}