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/repo/settings/hook_list.tmpl | |
parent | 28814564212b7c64136cc3eda3774af56983557e (diff) | |
download | gitea-4217c2333cf9ac29af611df9826cc4b5198241fe.tar.gz gitea-4217c2333cf9ac29af611df9826cc4b5198241fe.zip |
new create webhook UI
Diffstat (limited to 'templates/repo/settings/hook_list.tmpl')
-rw-r--r-- | templates/repo/settings/hook_list.tmpl | 32 |
1 files changed, 12 insertions, 20 deletions
diff --git a/templates/repo/settings/hook_list.tmpl b/templates/repo/settings/hook_list.tmpl index b04d86367e..b5c086bb84 100644 --- a/templates/repo/settings/hook_list.tmpl +++ b/templates/repo/settings/hook_list.tmpl @@ -3,7 +3,17 @@ <h4 class="ui top attached header"> {{.i18n.Tr "repo.settings.hooks"}} <div class="ui right"> - <a class="ui blue tiny button" href="{{.BaseLink}}/settings/hooks/new">{{.i18n.Tr "repo.settings.add_webhook"}}</a> + <div class="ui floating1 jump dropdown"> + <div class="ui blue tiny button">{{.i18n.Tr "repo.settings.add_webhook"}}</div> + <div class="menu"> + <a class="item" href="{{.BaseLink}}/settings/hooks/gogs/new"> + <img class="img-10" src="{{AppSubUrl}}/img/favicon.png">Gogs + </a> + <a class="item" href="{{.BaseLink}}/settings/hooks/slack/new"> + <img class="img-10" src="{{AppSubUrl}}/img/slack.png">Slack + </a> + </div> + </div> </div> </h4> <div class="ui attached table segment"> @@ -31,22 +41,4 @@ </div> </div> -<div class="ui small basic delete modal"> - <div class="ui icon header"> - <i class="trash icon"></i> - {{.i18n.Tr "repo.settings.webhook_deletion"}} - </div> - <div class="content"> - <p>{{.i18n.Tr "repo.settings.webhook_deletion_desc"}}</p> - </div> - <div class="actions"> - <div class="ui red basic inverted cancel button"> - <i class="remove icon"></i> - {{.i18n.Tr "modal.no"}} - </div> - <div class="ui green basic inverted ok button"> - <i class="checkmark icon"></i> - {{.i18n.Tr "modal.yes"}} - </div> - </div> -</div>
\ No newline at end of file +{{template "repo/settings/hook_delete_modal" .}}
\ No newline at end of file |