Commit a7a344f0 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix broken UI for admin system hooks

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 9b7b27ce
%h3.page-title %h3.page-title
System Hooks System hooks
%p.light %p.light
#{link_to "System hooks ", help_system_hooks_path, class: "vlink"} can be #{link_to "System hooks ", help_system_hooks_path, class: "vlink"} can be
...@@ -22,21 +22,14 @@ ...@@ -22,21 +22,14 @@
%hr %hr
-if @hooks.any? -if @hooks.any?
%h3 .ui-box
Hooks .title
%small (#{@hooks.count}) System hooks (#{@hooks.count})
%br %ul.well-list
%table - @hooks.each do |hook|
%tr %li
%th URL .pull-right
%th Method = link_to 'Test Hook', admin_hook_test_path(hook), class: "btn btn-small"
%th = link_to 'Remove', admin_hook_path(hook), data: { confirm: 'Are you sure?' }, method: :delete, class: "btn btn-remove btn-small"
- @hooks.each do |hook|
%tr
%td
= link_to admin_hook_path(hook) do = link_to admin_hook_path(hook) do
%strong= hook.url %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), data: { confirm: 'Are you sure?' }, method: :delete, class: "btn btn-remove btn-small pull-right"
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