Commit a7a344f042995543e8f5a854ff47be14ce85a945
1 parent
9b7b27ce
Exists in
master
and in
4 other branches
Fix broken UI for admin system hooks
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
1 changed file
with
10 additions
and
17 deletions
Show diff stats
app/views/admin/hooks/index.html.haml
1 | %h3.page-title | 1 | %h3.page-title |
2 | - System Hooks | 2 | + System hooks |
3 | 3 | ||
4 | %p.light | 4 | %p.light |
5 | #{link_to "System hooks ", help_system_hooks_path, class: "vlink"} can be | 5 | #{link_to "System hooks ", help_system_hooks_path, class: "vlink"} can be |
@@ -22,21 +22,14 @@ | @@ -22,21 +22,14 @@ | ||
22 | %hr | 22 | %hr |
23 | 23 | ||
24 | -if @hooks.any? | 24 | -if @hooks.any? |
25 | - %h3 | ||
26 | - Hooks | ||
27 | - %small (#{@hooks.count}) | ||
28 | - %br | ||
29 | - %table | ||
30 | - %tr | ||
31 | - %th URL | ||
32 | - %th Method | ||
33 | - %th | ||
34 | - - @hooks.each do |hook| | ||
35 | - %tr | ||
36 | - %td | 25 | + .ui-box |
26 | + .title | ||
27 | + System hooks (#{@hooks.count}) | ||
28 | + %ul.well-list | ||
29 | + - @hooks.each do |hook| | ||
30 | + %li | ||
31 | + .pull-right | ||
32 | + = link_to 'Test Hook', admin_hook_test_path(hook), class: "btn btn-small" | ||
33 | + = link_to 'Remove', admin_hook_path(hook), data: { confirm: 'Are you sure?' }, method: :delete, class: "btn btn-remove btn-small" | ||
37 | = link_to admin_hook_path(hook) do | 34 | = link_to admin_hook_path(hook) do |
38 | %strong= hook.url | 35 | %strong= hook.url |
39 | - = link_to 'Test Hook', admin_hook_test_path(hook), class: "btn btn-small pull-right" | ||
40 | - %td POST | ||
41 | - %td | ||
42 | - = link_to 'Remove', admin_hook_path(hook), data: { confirm: 'Are you sure?' }, method: :delete, class: "btn btn-remove btn-small pull-right" |