This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
{{template "base/head" .}}
{{template "base/navbar" .}}
{{template "repo/nav" .}}
{{template "repo/toolbar" .}}
<div id="body" class="container">
{{template "repo/setting_nav" .}}
<div id="repo-setting-container" class="col-md-10">
{{template "base/alert" .}}
<form id="repo-hooks-edit-form" action="{{.RepoLink}}/settings/hooks/{{.Webhook.Id}}" method="post">
{{.CsrfTokenHtml}}
<div class="panel panel-default">
<div class="panel-heading">
Manage Webhook
</div>
<div class="panel-body">
<div class="col-md-7">
<p>We’ll send a POST request to the URL below with details of any subscribed events.</p>
<hr/>
<div class="form-group">
<label for="payload-url">Payload URL</label>
<input id="payload-url" name="url" class="form-control" type="url" required="required" value="{{.Webhook.Url}}" />
<label for="payload-version">Content type</label>
<select id="content-type" name="content_type" class="form-control">
<option value="1">application/json</option>
</select>
<label for="payload-secret">Secret</label>
<input id="payload-secret" name="secret" class="form-control" type="text" value="{{.Webhook.Secret}}" />
<label>Which events would you like to trigger this webhook?</label>
<div class="radio">
<label>
<input class="form-control" name="push_only" type="radio" {{if .Webhook.HookEvent.PushOnly}}checked {{end}}name="trigger"/> Just the <i>push</i> event.
</label>
<input type="checkbox" name="active" {{if .Webhook.IsActive}}checked{{end}}/> Active
<p class="help-block">We will deliver event details when this hook is triggered.</p>
<div class="panel-footer">
<button class="btn btn-primary">Update Webhook</button>
<a type="button" href="{{.RepoLink}}/settings/hooks?remove={{.Webhook.Id}}" class="btn btn-danger">Delete Webhook</a>
</form>
<h3 class="panel-title">Recent Deliveries</h3>
Coming soon
{{template "base/footer" .}}