diff options
author | Unknwon <u@gogs.io> | 2015-10-25 04:26:26 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-10-25 04:26:26 -0400 |
commit | 022820103d622dda74aa1c619ca46838a14b762a (patch) | |
tree | 2de093f709bb04c366cee4ebb73dcc3230f7019a /templates/repo | |
parent | d5fab7f1b993ac389d751bfb87774549c4f3f4c2 (diff) | |
download | gitea-022820103d622dda74aa1c619ca46838a14b762a.tar.gz gitea-022820103d622dda74aa1c619ca46838a14b762a.zip |
#1657 allow forcing all private repos
Diffstat (limited to 'templates/repo')
-rw-r--r-- | templates/repo/create.tmpl | 5 | ||||
-rw-r--r-- | templates/repo/migrate.tmpl | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/templates/repo/create.tmpl b/templates/repo/create.tmpl index c2d1c46014..183da494ca 100644 --- a/templates/repo/create.tmpl +++ b/templates/repo/create.tmpl @@ -41,8 +41,13 @@ <div class="inline field"> <label>{{.i18n.Tr "repo.visibility"}}</label> <div class="ui checkbox"> + {{if .IsForcedPrivate}} + <input name="private" type="checkbox" checked readonly> + <label>{{.i18n.Tr "repo.visiblity_helper_forced" | Safe}}</label> + {{else}} <input name="private" type="checkbox" {{if .private}}checked{{end}}> <label>{{.i18n.Tr "repo.visiblity_helper" | Safe}}</label> + {{end}} </div> </div> <div class="inline field {{if .Err_Description}}error{{end}}"> diff --git a/templates/repo/migrate.tmpl b/templates/repo/migrate.tmpl index 5a76850d0d..c1ed2110af 100644 --- a/templates/repo/migrate.tmpl +++ b/templates/repo/migrate.tmpl @@ -65,8 +65,13 @@ <div class="inline field"> <label>{{.i18n.Tr "repo.visibility"}}</label> <div class="ui checkbox"> + {{if .IsForcedPrivate}} + <input name="private" type="checkbox" checked readonly> + <label>{{.i18n.Tr "repo.visiblity_helper_forced" | Safe}}</label> + {{else}} <input name="private" type="checkbox" {{if .private}}checked{{end}}> <label>{{.i18n.Tr "repo.visiblity_helper" | Safe}}</label> + {{end}} </div> </div> <div class="inline field"> |