hook_settings.tmpl 1022 B

123456789101112131415
  1. <div class="field">
  2. <h4 class="text-center">{{.i18n.Tr "repo.settings.event_desc"}}</h4>
  3. <label></label>
  4. <input name="push_only" type="radio" {{if or .PageIsSettingsHooksNew .Webhook.PushOnly}}checked{{end}}> {{.i18n.Tr "repo.settings.event_push_only" | Str2html}}
  5. </div>
  6. <div class="field">
  7. <label for="active">{{.i18n.Tr "repo.settings.active"}}</label>
  8. <input class="ipt-chk" id="active" name="active" type="checkbox" {{if or .PageIsSettingsHooksNew .Webhook.IsActive}}checked{{end}} />
  9. <span>{{.i18n.Tr "repo.settings.active_helper"}}</span>
  10. </div>
  11. <div class="field">
  12. <label></label>
  13. <button class="btn btn-green btn-large btn-radius">{{if .PageIsSettingsHooksNew}}{{.i18n.Tr "repo.settings.add_webhook"}}{{else}}{{.i18n.Tr "repo.settings.update_webhook"}}{{end}}</button>
  14. {{if .PageIsSettingsHooksEdit}}<a class="btn btn-red btn-large btn-link btn-radius" href="{{.RepoLink}}/settings/hooks?remove={{.Webhook.Id}}"><strong>{{.i18n.Tr "repo.settings.delete_webhook"}}</strong></a>{{end}}
  15. </div>