602e2e68d9
Summary: - Mostly very small things involving use of "a", "the" etc. - "post-receive" hooks are usually written with the hyphen in the name . - I changed the Web Hooks page to have a title consistent with all the other pages in the settings area. - More consistent usage of full-stops in lists.
39 lines
1.1 KiB
Text
39 lines
1.1 KiB
Text
.alert.alert-info
|
|
%span
|
|
Post-receive hooks for binding events.
|
|
%br
|
|
Read more about system hooks
|
|
%strong #{link_to "here", help_system_hooks_path, class: "vlink"}
|
|
|
|
= form_for @hook, as: :hook, url: admin_hooks_path, html: { class: 'form-inline' } do |f|
|
|
-if @hook.errors.any?
|
|
.alert.alert-error
|
|
- @hook.errors.full_messages.each do |msg|
|
|
%p= msg
|
|
.control-group
|
|
= f.label :url, "URL:"
|
|
.controls
|
|
= f.text_field :url, class: "text_field input-xxlarge input-xpadding"
|
|
|
|
= f.submit "Add System Hook", class: "btn btn-create"
|
|
%hr
|
|
|
|
-if @hooks.any?
|
|
%h3
|
|
Hooks
|
|
%small (#{@hooks.count})
|
|
%br
|
|
%table
|
|
%tr
|
|
%th URL
|
|
%th Method
|
|
%th
|
|
- @hooks.each do |hook|
|
|
%tr
|
|
%td
|
|
= link_to admin_hook_path(hook) do
|
|
%strong= hook.url
|
|
= link_to 'Test Hook', admin_hook_test_path(hook), class: "btn btn-small pull-right"
|
|
%td POST
|
|
%td
|
|
= link_to 'Remove', admin_hook_path(hook), confirm: 'Are you sure?', method: :delete, class: "btn btn-remove btn-small pull-right"
|