Commit 3d978f065f184beb10ef6652c08a19f672ebcb91

Authored by Dmitriy Zaporozhets
1 parent cc2145da

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 20 %hr
21 21  
22 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 29 %span.badge.badge-info POST
35 30 →
36 31 %span.monospace= hook.url
37   - %td
38 32 .pull-right
39 33 = link_to 'Test Hook', test_project_hook_path(@project, hook), class: "btn btn-small grouped"
40 34 = link_to 'Remove', project_hook_path(@project, hook), confirm: 'Are you sure?', method: :delete, class: "btn btn-remove btn-small grouped"
... ...