diff options
Diffstat (limited to 'templates/org')
-rw-r--r-- | templates/org/home.tmpl | 2 | ||||
-rw-r--r-- | templates/org/team/new.tmpl | 12 | ||||
-rw-r--r-- | templates/org/team/sidebar.tmpl | 3 |
3 files changed, 14 insertions, 3 deletions
diff --git a/templates/org/home.tmpl b/templates/org/home.tmpl index 03bb525276..0aa575707a 100644 --- a/templates/org/home.tmpl +++ b/templates/org/home.tmpl @@ -22,7 +22,7 @@ <div class="ui container"> <div class="ui mobile reversed stackable grid"> <div class="ui eleven wide column"> - {{if .IsOrganizationOwner}} + {{if .CanCreateOrgRepo}} <div class="text right"> <a class="ui green button" href="{{AppSubUrl}}/repo/create?org={{.Org.ID}}"><i class="octicon octicon-repo-create"></i> {{.i18n.Tr "new_repo"}}</a> </div> diff --git a/templates/org/team/new.tmpl b/templates/org/team/new.tmpl index e50a1777d2..c38fa4d940 100644 --- a/templates/org/team/new.tmpl +++ b/templates/org/team/new.tmpl @@ -31,14 +31,22 @@ <div class="ui radio checkbox"> <input type="radio" name="repo_access" value="specific" {{if not .Team.IncludesAllRepositories}}checked{{end}}> <label>{{.i18n.Tr "org.teams.specific_repositories"}}</label> - <span class="help">{{.i18n.Tr "org.teams.specific_repositories_helper"}}</span> + <span class="help">{{.i18n.Tr "org.teams.specific_repositories_helper" | Str2html}}</span> </div> </div> <div class="field"> <div class="ui radio checkbox"> <input type="radio" name="repo_access" value="all" {{if .Team.IncludesAllRepositories}}checked{{end}}> <label>{{.i18n.Tr "org.teams.all_repositories"}}</label> - <span class="help">{{.i18n.Tr "org.teams.all_repositories_helper"}}</span> + <span class="help">{{.i18n.Tr "org.teams.all_repositories_helper" | Str2html}}</span> + </div> + </div> + + <div class="field"> + <div class="ui checkbox"> + <label for="can_create_org_repo">{{.i18n.Tr "org.teams.can_create_org_repo"}}</label> + <input id="can_create_org_repo" name="can_create_org_repo" type="checkbox" {{if .Team.CanCreateOrgRepo}}checked{{end}}> + <span class="help">{{.i18n.Tr "org.teams.can_create_org_repo_helper"}}</span> </div> </div> </div> diff --git a/templates/org/team/sidebar.tmpl b/templates/org/team/sidebar.tmpl index dd189df5f3..75c5ce756d 100644 --- a/templates/org/team/sidebar.tmpl +++ b/templates/org/team/sidebar.tmpl @@ -40,6 +40,9 @@ {{.i18n.Tr "org.teams.admin_permission_desc" | Str2html}} {{end}} {{end}} + {{if .Team.CanCreateOrgRepo}} + <br><br>{{.i18n.Tr "org.teams.create_repo_permission_desc" | Str2html}} + {{end}} </div> </div> {{if .IsOrganizationOwner}} |