diff options
Diffstat (limited to 'templates/org/settings')
-rw-r--r-- | templates/org/settings/applications.tmpl | 18 | ||||
-rw-r--r-- | templates/org/settings/applications_oauth2_edit.tmpl | 7 | ||||
-rw-r--r-- | templates/org/settings/navbar.tmpl | 5 |
3 files changed, 30 insertions, 0 deletions
diff --git a/templates/org/settings/applications.tmpl b/templates/org/settings/applications.tmpl new file mode 100644 index 0000000000..8bdd99deb8 --- /dev/null +++ b/templates/org/settings/applications.tmpl @@ -0,0 +1,18 @@ +{{template "base/head" .}} +<div class="page-content organization settings options"> + {{template "org/header" .}} + <div class="ui container"> + <div class="ui grid"> + {{template "org/settings/navbar" .}} + <div class="twelve wide column content"> + {{template "base/alert" .}} + <h4 class="ui top attached header"> + {{.locale.Tr "settings.applications"}} + </h4> + + {{template "user/settings/applications_oauth2_list" .}} + </div> + </div> + </div> +</div> +{{template "base/footer" .}} diff --git a/templates/org/settings/applications_oauth2_edit.tmpl b/templates/org/settings/applications_oauth2_edit.tmpl new file mode 100644 index 0000000000..2c7fa842b3 --- /dev/null +++ b/templates/org/settings/applications_oauth2_edit.tmpl @@ -0,0 +1,7 @@ +{{template "base/head" .}} +<div class="page-content organization settings options"> + {{template "org/header" .}} + + {{template "user/settings/applications_oauth2_edit_form" .}} +</div> +{{template "base/footer" .}} diff --git a/templates/org/settings/navbar.tmpl b/templates/org/settings/navbar.tmpl index 0c8423cd75..e7cbb87344 100644 --- a/templates/org/settings/navbar.tmpl +++ b/templates/org/settings/navbar.tmpl @@ -12,6 +12,11 @@ <a class="{{if .PageIsOrgSettingsLabels}}active{{end}} item" href="{{.OrgLink}}/settings/labels"> {{.locale.Tr "repo.labels"}} </a> + {{if .EnableOAuth2}} + <a class="{{if .PageIsSettingsApplications}}active{{end}} item" href="{{.OrgLink}}/settings/applications"> + {{.locale.Tr "settings.applications"}} + </a> + {{end}} <a class="{{if .PageIsSettingsDelete}}active{{end}} item" href="{{.OrgLink}}/settings/delete"> {{.locale.Tr "org.settings.delete"}} </a> |