2014-08-24 08:59:47 -04:00
|
|
|
<div class="field">
|
2015-08-26 12:30:06 -04:00
|
|
|
<h4>{{.i18n.Tr "repo.settings.event_desc"}}</h4>
|
|
|
|
<div class="grouped fields">
|
|
|
|
<div class="field">
|
|
|
|
<div class="ui radio checkbox checked">
|
|
|
|
<input class="hidden" name="push_only" type="radio" {{if or .PageIsSettingsHooksNew .Webhook.PushOnly}}checked{{end}}>
|
|
|
|
<label>{{.i18n.Tr "repo.settings.event_push_only" | Str2html}}</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2014-08-24 08:59:47 -04:00
|
|
|
</div>
|
2015-08-26 12:30:06 -04:00
|
|
|
<div class="inline field">
|
|
|
|
<div class="ui checkbox">
|
|
|
|
<input class="hidden" name="active" type="checkbox" tabindex="0" {{if or .PageIsSettingsHooksNew .Webhook.IsActive}}checked{{end}}>
|
|
|
|
<label>{{.i18n.Tr "repo.settings.active"}}</label>
|
|
|
|
<span class="help">{{.i18n.Tr "repo.settings.active_helper"}}</span>
|
|
|
|
</div>
|
2014-08-24 08:59:47 -04:00
|
|
|
</div>
|
|
|
|
<div class="field">
|
2015-08-26 12:30:06 -04:00
|
|
|
{{if .PageIsSettingsHooksNew}}
|
|
|
|
<button class="ui green button">{{.i18n.Tr "repo.settings.add_webhook"}}</button>
|
|
|
|
{{else}}
|
|
|
|
<button class="ui green button">{{.i18n.Tr "repo.settings.update_webhook"}}</button>
|
|
|
|
<a class="ui red delete-button button" data-url="{{.BaseLink}}/settings/hooks/delete" data-id="{{.Webhook.ID}}">{{.i18n.Tr "repo.settings.delete_webhook"}}</a>
|
|
|
|
{{end}}
|
2014-08-24 08:59:47 -04:00
|
|
|
</div>
|
2015-08-26 12:30:06 -04:00
|
|
|
|
|
|
|
{{template "repo/settings/hook_delete_modal" .}}
|