Browse Source

Minor fix for #3194

- Update locale bindata
Unknwon 4 years ago
parent
commit
4bbb878d20
4 changed files with 9 additions and 5 deletions
  1. 1 1
      gogs.go
  2. 2 2
      modules/bindata/bindata.go
  3. 5 1
      routers/repo/view.go
  4. 1 1
      templates/.VERSION

+ 1 - 1
gogs.go

@@ -17,7 +17,7 @@ import (
17 17
 	"github.com/gogits/gogs/modules/setting"
18 18
 )
19 19
 
20
-const APP_VER = "0.9.30.0601"
20
+const APP_VER = "0.9.31.0627"
21 21
 
22 22
 func init() {
23 23
 	runtime.GOMAXPROCS(runtime.NumCPU())

File diff suppressed because it is too large
+ 2 - 2
modules/bindata/bindata.go


+ 5 - 1
routers/repo/view.go

@@ -30,7 +30,11 @@ const (
30 30
 )
31 31
 
32 32
 func Home(ctx *context.Context) {
33
-	ctx.Data["Title"] = ctx.Repo.Repository.Owner.Name + "/" + ctx.Repo.Repository.Name + ": " + ctx.Repo.Repository.Description
33
+	title := ctx.Repo.Repository.Owner.Name + "/" + ctx.Repo.Repository.Name
34
+	if len(ctx.Repo.Repository.Description) > 0 {
35
+		title += ": " + ctx.Repo.Repository.Description
36
+	}
37
+	ctx.Data["Title"] = title
34 38
 	ctx.Data["PageIsViewCode"] = true
35 39
 	ctx.Data["RequireHighlightJS"] = true
36 40
 

+ 1 - 1
templates/.VERSION

@@ -1 +1 @@
1
-0.9.30.0601
1
+0.9.31.0627