summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorSandro Santilli <strk@kbt.io>2016-06-27 10:32:35 +0200
committer无闻 <u@gogs.io>2016-06-27 16:32:35 +0800
commit2ce60ff3142c92fdd7dbe461e61a5a985014b323 (patch)
tree255f49724602d0e82979099b9cf37ca4f8cb0bbe /routers
parent17a4d8a5e50d74df3bc464468101c19fb545b74e (diff)
downloadgitea-2ce60ff3142c92fdd7dbe461e61a5a985014b323.tar.gz
gitea-2ce60ff3142c92fdd7dbe461e61a5a985014b323.zip
Include repository owner name and description in html title (#3194)
Closes #3192
Diffstat (limited to 'routers')
-rw-r--r--routers/repo/view.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/view.go b/routers/repo/view.go
index 74c5f1ce51..c7ed649518 100644
--- a/routers/repo/view.go
+++ b/routers/repo/view.go
@@ -30,7 +30,7 @@ const (
)
func Home(ctx *context.Context) {
- ctx.Data["Title"] = ctx.Repo.Repository.Name
+ ctx.Data["Title"] = ctx.Repo.Repository.Owner.Name + "/" + ctx.Repo.Repository.Name + ": " + ctx.Repo.Repository.Description
ctx.Data["PageIsViewCode"] = true
ctx.Data["RequireHighlightJS"] = true