Minor fix for #3194

- Update locale bindata
This commit is contained in:
Unknwon 2016-06-27 16:38:35 +08:00
parent 2ce60ff314
commit 4bbb878d20
4 changed files with 9 additions and 5 deletions

View file

@ -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