diff options
author | Unknwon <u@gogs.io> | 2015-12-05 13:24:13 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-12-05 13:24:13 -0500 |
commit | 404867f206f97ec4ea2e6032fea47bc0499d3497 (patch) | |
tree | b37be9387d2a00cd2447e65a1367bb292c6c0a09 /templates/repo/settings/hook_history.tmpl | |
parent | f0ee33267c453cc7f77a87a2b4b784febbb604dd (diff) | |
download | gitea-404867f206f97ec4ea2e6032fea47bc0499d3497.tar.gz gitea-404867f206f97ec4ea2e6032fea47bc0499d3497.zip |
fix #2105 and fix #1857
Diffstat (limited to 'templates/repo/settings/hook_history.tmpl')
-rw-r--r-- | templates/repo/settings/hook_history.tmpl | 6 |
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"> |