diff options
author | Unknwon <u@gogs.io> | 2015-08-27 00:30:06 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-27 00:30:06 +0800 |
commit | 4217c2333cf9ac29af611df9826cc4b5198241fe (patch) | |
tree | d388e0ede4707c902a499937a31b67faa4c784c6 /templates/org/settings | |
parent | 28814564212b7c64136cc3eda3774af56983557e (diff) | |
download | gitea-4217c2333cf9ac29af611df9826cc4b5198241fe.tar.gz gitea-4217c2333cf9ac29af611df9826cc4b5198241fe.zip |
new create webhook UI
Diffstat (limited to 'templates/org/settings')
-rw-r--r-- | templates/org/settings/hook_new.tmpl | 60 |
1 files changed, 26 insertions, 34 deletions
diff --git a/templates/org/settings/hook_new.tmpl b/templates/org/settings/hook_new.tmpl index 6e7ee53604..d9a9b16928 100644 --- a/templates/org/settings/hook_new.tmpl +++ b/templates/org/settings/hook_new.tmpl @@ -1,37 +1,29 @@ -{{template "ng/base/head" .}} -{{template "ng/base/header" .}} -{{template "org/base/header" .}} -<div id="setting-wrapper" class="main-wrapper"> - <div id="org-setting" class="container clear"> - {{template "org/settings/nav" .}} - <div class="grid-4-5 left"> - <div class="setting-content"> - {{template "ng/base/alert" .}} - <div id="setting-content"> - <div id="repo-hooks-panel" class="panel panel-radius"> - <div class="panel-header"> - <strong>{{if .PageIsSettingsHooksNew}}{{.i18n.Tr "repo.settings.add_webhook"}}{{else}}{{.i18n.Tr "repo.settings.update_webhook"}}{{end}}</strong> - </div> - {{template "repo/settings/hook_types" .}} - {{template "repo/settings/hook_gogs" .}} - {{template "repo/settings/hook_slack" .}} - </div> - </div> - {{if .PageIsSettingsHooksEdit}} - <br> - <div id="setting-content"> - <div id="repo-hooks-history-panel" class="panel panel-radius"> - <div class="panel-header"> - <strong>{{.i18n.Tr "repo.settings.recent_deliveries"}}</strong> - </div> - <ul class="panel-body setting-list"> - <li>Coming soon!</li> - </ul> - </div> - </div> - {{end}} - </div> +{{template "base/head" .}} +<div class="organization settings new webhook"> + {{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"> + {{if .PageIsSettingsHooksNew}}{{.i18n.Tr "repo.settings.add_webhook"}}{{else}}{{.i18n.Tr "repo.settings.update_webhook"}}{{end}} + <div class="ui right"> + {{if eq .HookType "gogs"}} + <img class="img-13" src="{{AppSubUrl}}/img/favicon.png"> + {{else if eq .HookType "slack"}} + <img class="img-13" src="{{AppSubUrl}}/img/slack.png"> + {{end}} + </div> + </h4> + <div class="ui attached segment"> + {{template "repo/settings/hook_gogs" .}} + {{template "repo/settings/hook_slack" .}} </div> + + {{template "repo/settings/hook_history" .}} + </div> + </div> </div> </div> -{{template "ng/base/footer" .}} +{{template "base/footer" .}} |