소스 검색

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

Closes #3192
Sandro Santilli 8 년 전
부모
커밋
2ce60ff314
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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