summaryrefslogtreecommitdiffstats
path: root/templates/repo/settings/hook_history.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/repo/settings/hook_history.tmpl')
-rw-r--r--templates/repo/settings/hook_history.tmpl6
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/repo/settings/hook_history.tmpl b/templates/repo/settings/hook_history.tmpl
index d81c317cb5..15957a6790 100644
--- a/templates/repo/settings/hook_history.tmpl
+++ b/templates/repo/settings/hook_history.tmpl
@@ -1,6 +1,12 @@
{{if .PageIsSettingsHooksEdit}}
<h4 class="ui top attached header">
{{.i18n.Tr "repo.settings.recent_deliveries"}}
+ {{if .IsRepositoryAdmin}}
+ <div class="ui right">
+ <button class="ui teal tiny button poping up" id="test-delivery" data-content=
+ "{{.i18n.Tr "repo.settings.webhook.test_delivery_desc"}}" data-variation="inverted tiny" data-link="{{.Link}}/test" data-redirect="{{.Link}}">{{.i18n.Tr "repo.settings.webhook.test_delivery"}}</button>
+ </div>
+ {{end}}
</h4>
<div class="ui attached table segment">
<div class="ui hook history list">