diff options
author | KN4CK3R <admin@oldschoolhack.me> | 2022-01-05 22:00:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-05 15:00:20 -0600 |
commit | bf7b083cfe47cc922090ce7922b89f7a5030a44d (patch) | |
tree | 62291bc31a1dd28252a8802555d09085d30416ee /templates/repo | |
parent | a38ba634a4da15fbb2d1b6ac6742cf01c1503ea4 (diff) | |
download | gitea-bf7b083cfe47cc922090ce7922b89f7a5030a44d.tar.gz gitea-bf7b083cfe47cc922090ce7922b89f7a5030a44d.zip |
Add replay of webhooks. (#18191)
Diffstat (limited to 'templates/repo')
-rw-r--r-- | templates/repo/settings/webhook/history.tmpl | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/repo/settings/webhook/history.tmpl b/templates/repo/settings/webhook/history.tmpl index 8823d6c1dc..a719e4453a 100644 --- a/templates/repo/settings/webhook/history.tmpl +++ b/templates/repo/settings/webhook/history.tmpl @@ -40,6 +40,14 @@ <span class="ui label">N/A</span> {{end}} </a> + {{if or $.Permission.IsAdmin $.IsOrganizationOwner $.PageIsAdmin}} + <div class="right menu"> + <form class="item" action="{{$.Link}}/replay/{{.UUID}}" method="post"> + {{$.CsrfTokenHtml}} + <button class="ui tiny button tooltip" data-content="{{$.i18n.Tr "repo.settings.webhook.replay.description"}}" data-variation="inverted tiny">{{svg "octicon-sync"}}</button> + </form> + </div> + {{end}} </div> <div class="ui bottom attached tab segment active" data-tab="request-{{.ID}}"> {{if .RequestInfo}} |