Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-09-06 13:55:23 +0300
committerPhil Hughes <me@iamphill.com>2017-09-06 13:55:23 +0300
commitde82bd8e447ae7b4b7e66f0368f5f43311848186 (patch)
tree19e49f95e95d12f995176b33a84ff894e6ccfc19 /app/helpers/breadcrumbs_helper.rb
parent68e9372acd2285055df70cdf84665febfb496166 (diff)
fixed up JS to use a js-* class
fixed up Ruby based on review
Diffstat (limited to 'app/helpers/breadcrumbs_helper.rb')
-rw-r--r--app/helpers/breadcrumbs_helper.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/app/helpers/breadcrumbs_helper.rb b/app/helpers/breadcrumbs_helper.rb
index d4c3e1b3929..ee1b7ed083e 100644
--- a/app/helpers/breadcrumbs_helper.rb
+++ b/app/helpers/breadcrumbs_helper.rb
@@ -25,15 +25,13 @@ module BreadcrumbsHelper
def breadcrumb_list_item(link)
content_tag "li" do
- output = link
- output << icon("angle-right", class: "breadcrumbs-list-angle")
- output
+ link + icon("angle-right", class: "breadcrumbs-list-angle")
end
end
def add_to_breadcrumb_dropdown(link, location: :before)
@breadcrumb_dropdown_links ||= {}
- @breadcrumb_dropdown_links[location] = [] unless @breadcrumb_dropdown_links[location]
+ @breadcrumb_dropdown_links[location] ||= []
@breadcrumb_dropdown_links[location] << link
end
end