summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorFuXiaoHei <fuxiaohei@hexiaz.com>2014-03-19 22:15:28 +0800
committerFuXiaoHei <fuxiaohei@hexiaz.com>2014-03-19 22:15:28 +0800
commita0e73e2b5411499719a7e02281c48ad40dedfa24 (patch)
treef76b9e5ac40f072309a44c3d82663c39f139b1d8 /routers
parent3634d1ee326fd285935c0a5992575583ef6467d4 (diff)
downloadgitea-a0e73e2b5411499719a7e02281c48ad40dedfa24.tar.gz
gitea-a0e73e2b5411499719a7e02281c48ad40dedfa24.zip
top nav arrow update
Diffstat (limited to 'routers')
-rw-r--r--routers/repo/repo.go1
-rw-r--r--routers/user/user.go2
2 files changed, 3 insertions, 0 deletions
diff --git a/routers/repo/repo.go b/routers/repo/repo.go
index 947643a1a8..fb54d4ef8b 100644
--- a/routers/repo/repo.go
+++ b/routers/repo/repo.go
@@ -15,6 +15,7 @@ func Create(ctx *middleware.Context, form auth.CreateRepoForm) {
ctx.Data["Title"] = "Create repository"
if ctx.Req.Method == "GET" {
+ ctx.Data["PageIsNewRepo"] = true // For navbar arrow.
ctx.Data["LanguageIgns"] = models.LanguageIgns
ctx.Data["Licenses"] = models.Licenses
ctx.HTML(200, "repo/create", ctx.Data)
diff --git a/routers/user/user.go b/routers/user/user.go
index 42030076d2..8c96607055 100644
--- a/routers/user/user.go
+++ b/routers/user/user.go
@@ -68,6 +68,8 @@ func Profile(ctx *middleware.Context, params martini.Params) {
ctx.Data["Repos"] = repos
}
+ ctx.Data["PageIsUserProfile"] = true // For navbar arrow.
+
ctx.HTML(200, "user/profile", ctx.Data)
}