2014-05-02 08:07:34 -06:00
|
|
|
|
{{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" .}}
|
2014-05-05 18:52:25 -06:00
|
|
|
|
<form id="repo-hooks-add-form" action="{{.RepoLink}}/settings/hooks/add" method="post">
|
|
|
|
|
{{.CsrfTokenHtml}}
|
2014-05-05 11:08:01 -06:00
|
|
|
|
<div class="panel panel-default">
|
|
|
|
|
<div class="panel-heading">
|
|
|
|
|
Add 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>
|
2014-05-05 18:52:25 -06:00
|
|
|
|
<input id="payload-url" name="url" class="form-control" type="url" required="required"/>
|
2014-05-05 11:08:01 -06:00
|
|
|
|
</div>
|
2014-05-05 19:36:08 -06:00
|
|
|
|
|
2014-05-05 11:08:01 -06:00
|
|
|
|
<div class="form-group">
|
2014-05-05 18:52:25 -06:00
|
|
|
|
<label for="content-type">Content type</label>
|
|
|
|
|
<select id="content-type" name="content_type" class="form-control">
|
2014-05-05 19:36:08 -06:00
|
|
|
|
<option value="1">application/json</option>
|
2014-05-05 11:08:01 -06:00
|
|
|
|
</select>
|
|
|
|
|
</div>
|
2014-05-05 19:36:08 -06:00
|
|
|
|
|
2014-05-05 11:08:01 -06:00
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label for="payload-secret">Secret</label>
|
2014-05-05 18:52:25 -06:00
|
|
|
|
<input id="payload-secret" name="secret" class="form-control" type="text"/>
|
2014-05-05 11:08:01 -06:00
|
|
|
|
</div>
|
|
|
|
|
<hr/>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label>Which events would you like to trigger this webhook?</label>
|
|
|
|
|
<div class="radio">
|
|
|
|
|
<label>
|
2014-05-05 18:52:25 -06:00
|
|
|
|
<input class="form-control" name="push_only" type="radio" checked name="trigger"/> Just the <i>push</i> event.
|
2014-05-05 11:08:01 -06:00
|
|
|
|
</label>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<hr/>
|
|
|
|
|
<div class="form-group">
|
2014-05-02 08:07:34 -06:00
|
|
|
|
<label>
|
2014-05-05 19:36:08 -06:00
|
|
|
|
<input type="checkbox" name="active" checked/> Active
|
2014-05-02 08:07:34 -06:00
|
|
|
|
</label>
|
2014-05-05 11:08:01 -06:00
|
|
|
|
<p class="help-block">We will deliver event details when this hook is triggered.</p>
|
2014-05-02 08:07:34 -06:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2014-05-05 11:08:01 -06:00
|
|
|
|
</div>
|
2014-05-02 08:07:34 -06:00
|
|
|
|
|
2014-05-05 11:08:01 -06:00
|
|
|
|
<div class="panel-footer">
|
|
|
|
|
<button class="btn btn-success">Add Webhook</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
2014-05-02 08:07:34 -06:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{{template "base/footer" .}}
|