summaryrefslogtreecommitdiff
path: root/app/views/hooks
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2012-08-10 18:07:50 -0400
committerRobert Speicher <rspeicher@gmail.com>2012-08-10 18:25:15 -0400
commit775418918782d5284000ed0bfea364458c748567 (patch)
treec31e3633a3bcbed17b000f0165cf35edad41f7ca /app/views/hooks
parent1413c23c502d5a5cbc9b81f553a245103c1d6e50 (diff)
downloadgitlab-ce-775418918782d5284000ed0bfea364458c748567.tar.gz
Fully embrace Ruby 1.9 hash syntax
Didn't bother with files in db/, config/, or features/
Diffstat (limited to 'app/views/hooks')
-rw-r--r--app/views/hooks/index.html.haml12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/views/hooks/index.html.haml b/app/views/hooks/index.html.haml
index 15699fc4390..4e15dc50ee8 100644
--- a/app/views/hooks/index.html.haml
+++ b/app/views/hooks/index.html.haml
@@ -6,9 +6,9 @@
Post receive hooks for binding events when someone push to repository.
%br
Read more about web hooks
- %strong #{link_to "here", help_web_hooks_path, :class => "vlink"}
+ %strong #{link_to "here", help_web_hooks_path, class: "vlink"}
-= form_for [@project, @hook], :as => :hook, :url => project_hooks_path(@project) do |f|
+= form_for [@project, @hook], as: :hook, url: project_hooks_path(@project) do |f|
-if @hook.errors.any?
.alert-message.block-message.error
- @hook.errors.full_messages.each do |msg|
@@ -16,9 +16,9 @@
.clearfix
= f.label :url, "URL:"
.input
- = f.text_field :url, :class => "text_field xxlarge"
+ = f.text_field :url, class: "text_field xxlarge"
&nbsp;
- = f.submit "Add Web Hook", :class => "btn primary"
+ = f.submit "Add Web Hook", class: "btn primary"
%hr
-if @hooks.any?
@@ -36,7 +36,7 @@
%td
= 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"
+ = 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"
+ = link_to 'Remove', project_hook_path(@project, hook), confirm: 'Are you sure?', method: :delete, class: "danger btn small right"