summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-09-07 14:02:09 -0400
committerUnknwon <u@gogs.io>2015-09-07 14:02:09 -0400
commitcc83043edc2ddda52d3cbd2748b0fb4fe6406369 (patch)
treeeb5ef63723021daed80d52a2e713d4934d548f6b
parent3d9b98fae4782a45edc3f53ad4561fe7e14a4377 (diff)
downloadgitea-cc83043edc2ddda52d3cbd2748b0fb4fe6406369.tar.gz
gitea-cc83043edc2ddda52d3cbd2748b0fb4fe6406369.zip
minor fix on template
-rw-r--r--modules/auth/org.go2
-rw-r--r--routers/repo/repo.go2
-rw-r--r--templates/repo/create.tmpl2
-rw-r--r--templates/repo/migrate.tmpl2
4 files changed, 2 insertions, 6 deletions
diff --git a/modules/auth/org.go b/modules/auth/org.go
index 63c0616807..6d9a7269ec 100644
--- a/modules/auth/org.go
+++ b/modules/auth/org.go
@@ -17,7 +17,7 @@ import (
// \/ /_____/ \/ \/ \/ \/ \/
type CreateOrgForm struct {
- OrgName string `binding:"Required;AlphaDashDot;MaxSize(30)"`
+ OrgName string `binding:"Required;AlphaDashDot;MaxSize(30)" locale:"org.org_name_holder"`
}
func (f *CreateOrgForm) Validate(ctx *macaron.Context, errs binding.Errors) binding.Errors {
diff --git a/routers/repo/repo.go b/routers/repo/repo.go
index 567b717a70..8a0c5f975c 100644
--- a/routers/repo/repo.go
+++ b/routers/repo/repo.go
@@ -30,7 +30,7 @@ const (
func checkContextUser(ctx *middleware.Context, uid int64) *models.User {
orgs, err := models.GetOwnedOrgsByUserIDDesc(ctx.User.Id, "updated")
if err != nil {
- ctx.Handle(500, "GetOwnedOrganizationsByUserIDDesc", err)
+ ctx.Handle(500, "GetOwnedOrgsByUserIDDesc", err)
return nil
}
ctx.Data["Orgs"] = orgs
diff --git a/templates/repo/create.tmpl b/templates/repo/create.tmpl
index 084c99c200..c2d1c46014 100644
--- a/templates/repo/create.tmpl
+++ b/templates/repo/create.tmpl
@@ -24,13 +24,11 @@
{{.SignedUser.Name}}
</div>
{{range .Orgs}}
- {{if .IsOwnedBy $.SignedUser.Id}}
<div class="item" data-value="{{.Id}}">
<img class="ui mini image" src="{{.AvatarLink}}">
{{.Name}}
</div>
{{end}}
- {{end}}
</div>
</div>
</div>
diff --git a/templates/repo/migrate.tmpl b/templates/repo/migrate.tmpl
index fa920e9fe3..5a76850d0d 100644
--- a/templates/repo/migrate.tmpl
+++ b/templates/repo/migrate.tmpl
@@ -49,13 +49,11 @@
{{.SignedUser.Name}}
</div>
{{range .Orgs}}
- {{if .IsOwnedBy $.SignedUser.Id}}
<div class="item" data-value="{{.Id}}">
<img class="ui mini image" src="{{.AvatarLink}}">
{{.Name}}
</div>
{{end}}
- {{end}}
</div>
</div>
</div>