diff options
author | Unknwon <u@gogs.io> | 2016-06-27 16:38:35 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-06-27 16:38:35 +0800 |
commit | 4bbb878d20e9add712fd8f7a77490f3e0a51e2d6 (patch) | |
tree | 45376e12a35e30584d5b94ffcb6f4281e18c546b /routers | |
parent | 2ce60ff3142c92fdd7dbe461e61a5a985014b323 (diff) | |
download | gitea-4bbb878d20e9add712fd8f7a77490f3e0a51e2d6.tar.gz gitea-4bbb878d20e9add712fd8f7a77490f3e0a51e2d6.zip |
Minor fix for #3194
- Update locale bindata
Diffstat (limited to 'routers')
-rw-r--r-- | routers/repo/view.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/routers/repo/view.go b/routers/repo/view.go index c7ed649518..65ca677867 100644 --- a/routers/repo/view.go +++ b/routers/repo/view.go @@ -30,7 +30,11 @@ const ( ) func Home(ctx *context.Context) { - ctx.Data["Title"] = ctx.Repo.Repository.Owner.Name + "/" + ctx.Repo.Repository.Name + ": " + ctx.Repo.Repository.Description + title := ctx.Repo.Repository.Owner.Name + "/" + ctx.Repo.Repository.Name + if len(ctx.Repo.Repository.Description) > 0 { + title += ": " + ctx.Repo.Repository.Description + } + ctx.Data["Title"] = title ctx.Data["PageIsViewCode"] = true ctx.Data["RequireHighlightJS"] = true |