Move from table to list for Hooks page
This commit is contained in:
parent
cc2145da80
commit
3d978f065f
1 changed files with 6 additions and 12 deletions
|
@ -20,21 +20,15 @@
|
||||||
%hr
|
%hr
|
||||||
|
|
||||||
-if @hooks.any?
|
-if @hooks.any?
|
||||||
%h3.page_title
|
.ui-box
|
||||||
|
%h5.title
|
||||||
Hooks (#{@hooks.count})
|
Hooks (#{@hooks.count})
|
||||||
%br
|
%ul.well-list
|
||||||
%table
|
|
||||||
%thead
|
|
||||||
%tr
|
|
||||||
%th URL
|
|
||||||
%th
|
|
||||||
- @hooks.each do |hook|
|
- @hooks.each do |hook|
|
||||||
%tr
|
%li
|
||||||
%td
|
|
||||||
%span.badge.badge-info POST
|
%span.badge.badge-info POST
|
||||||
→
|
→
|
||||||
%span.monospace= hook.url
|
%span.monospace= hook.url
|
||||||
%td
|
|
||||||
.pull-right
|
.pull-right
|
||||||
= link_to 'Test Hook', test_project_hook_path(@project, hook), class: "btn btn-small grouped"
|
= link_to 'Test Hook', test_project_hook_path(@project, hook), class: "btn btn-small grouped"
|
||||||
= link_to 'Remove', project_hook_path(@project, hook), confirm: 'Are you sure?', method: :delete, class: "btn btn-remove btn-small grouped"
|
= link_to 'Remove', project_hook_path(@project, hook), confirm: 'Are you sure?', method: :delete, class: "btn btn-remove btn-small grouped"
|
||||||
|
|
Loading…
Reference in a new issue