summaryrefslogtreecommitdiff
path: root/app/views/hooks
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-12-14 08:14:05 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-12-14 08:14:05 +0300
commitb01f8b63c2c13f8d6b9111771fb4f1422214d91c (patch)
tree47c03ab168a7d34808493c366312194859459d46 /app/views/hooks
parent44209861e8a3ed4e5d0e0e59823d4bf61c338f1f (diff)
downloadgitlab-ce-b01f8b63c2c13f8d6b9111771fb4f1422214d91c.tar.gz
added NamespacedProject role. Extended project info displayed for admin. Fixed project limit
Diffstat (limited to 'app/views/hooks')
-rw-r--r--app/views/hooks/index.html.haml13
1 files changed, 6 insertions, 7 deletions
diff --git a/app/views/hooks/index.html.haml b/app/views/hooks/index.html.haml
index 1b59c8e81ab..6a36c749123 100644
--- a/app/views/hooks/index.html.haml
+++ b/app/views/hooks/index.html.haml
@@ -22,22 +22,21 @@
%hr
-if @hooks.any?
- %h3
- Hooks
- %small (#{@hooks.count})
+ %h3.page_title
+ Hooks (#{@hooks.count})
%br
%table
%thead
%tr
%th URL
- %th Method
%th
- @hooks.each do |hook|
%tr
%td
+ %span.badge.badge-info POST
= link_to project_hook_path(@project, hook) do
%strong= hook.url
- = link_to 'Test Hook', test_project_hook_path(@project, hook), class: "btn small right"
- %td POST
%td
- = link_to 'Remove', project_hook_path(@project, hook), confirm: 'Are you sure?', method: :delete, class: "danger btn small right"
+ .right
+ = link_to 'Test Hook', test_project_hook_path(@project, hook), class: "btn small grouped"
+ = link_to 'Remove', project_hook_path(@project, hook), confirm: 'Are you sure?', method: :delete, class: "danger btn small grouped"