Commit 3d978f06 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Move from table to list for Hooks page

parent cc2145da
...@@ -20,21 +20,15 @@ ...@@ -20,21 +20,15 @@
%hr %hr
-if @hooks.any? -if @hooks.any?
%h3.page_title .ui-box
Hooks (#{@hooks.count}) %h5.title
%br Hooks (#{@hooks.count})
%table %ul.well-list
%thead - @hooks.each do |hook|
%tr %li
%th URL
%th
- @hooks.each do |hook|
%tr
%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"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment