Explorar o código

Include repository owner name and description in html title (#3194)

Closes #3192
Sandro Santilli %!s(int64=8) %!d(string=hai) anos
pai
achega
2ce60ff314
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      routers/repo/view.go

+ 1 - 1
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