summaryrefslogtreecommitdiff
path: root/app/views/search/show.html.haml
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/search/show.html.haml
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/search/show.html.haml')
-rw-r--r--app/views/search/show.html.haml10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/views/search/show.html.haml b/app/views/search/show.html.haml
index b93a03af2f1..ed9da1f0753 100644
--- a/app/views/search/show.html.haml
+++ b/app/views/search/show.html.haml
@@ -1,10 +1,10 @@
-= form_tag search_path, :method => :get do |f|
+= form_tag search_path, method: :get do |f|
.padded
= label_tag :search do
%strong Looking for
.input
- = text_field_tag :search, params[:search], :placeholder => "issue 143", :class => "input-xxlarge", :id => "dashboard_search"
- = submit_tag 'Search', :class => "btn btn-primary"
+ = text_field_tag :search, params[:search], placeholder: "issue 143", class: "input-xxlarge", id: "dashboard_search"
+ = submit_tag 'Search', class: "btn btn-primary"
- if params[:search].present?
%br
%h3
@@ -41,7 +41,7 @@
= link_to [merge_request.project, merge_request] do
%span.badge.badge-info ##{merge_request.id}
&ndash;
- %strong.term= truncate merge_request.title, :length => 50
+ %strong.term= truncate merge_request.title, length: 50
%strong.right
%span.label= merge_request.project.name
- if @merge_requests.blank?
@@ -59,7 +59,7 @@
= link_to [issue.project, issue] do
%span.badge.badge-info ##{issue.id}
&ndash;
- %strong.term= truncate issue.title, :length => 40
+ %strong.term= truncate issue.title, length: 40
%strong.right
%span.label= issue.project.name
- if @issues.blank?