Commit 3d978f065f184beb10ef6652c08a19f672ebcb91
1 parent
cc2145da
Exists in
master
and in
4 other branches
Move from table to list for Hooks page
Showing
1 changed file
with
6 additions
and
12 deletions
Show diff stats
app/views/hooks/index.html.haml
@@ -20,21 +20,15 @@ | @@ -20,21 +20,15 @@ | ||
20 | %hr | 20 | %hr |
21 | 21 | ||
22 | -if @hooks.any? | 22 | -if @hooks.any? |
23 | - %h3.page_title | ||
24 | - Hooks (#{@hooks.count}) | ||
25 | - %br | ||
26 | - %table | ||
27 | - %thead | ||
28 | - %tr | ||
29 | - %th URL | ||
30 | - %th | ||
31 | - - @hooks.each do |hook| | ||
32 | - %tr | ||
33 | - %td | 23 | + .ui-box |
24 | + %h5.title | ||
25 | + Hooks (#{@hooks.count}) | ||
26 | + %ul.well-list | ||
27 | + - @hooks.each do |hook| | ||
28 | + %li | ||
34 | %span.badge.badge-info POST | 29 | %span.badge.badge-info POST |
35 | → | 30 | → |
36 | %span.monospace= hook.url | 31 | %span.monospace= hook.url |
37 | - %td | ||
38 | .pull-right | 32 | .pull-right |
39 | = link_to 'Test Hook', test_project_hook_path(@project, hook), class: "btn btn-small grouped" | 33 | = link_to 'Test Hook', test_project_hook_path(@project, hook), class: "btn btn-small grouped" |
40 | = link_to 'Remove', project_hook_path(@project, hook), confirm: 'Are you sure?', method: :delete, class: "btn btn-remove btn-small grouped" | 34 | = link_to 'Remove', project_hook_path(@project, hook), confirm: 'Are you sure?', method: :delete, class: "btn btn-remove btn-small grouped" |