summaryrefslogtreecommitdiff
path: root/app/helpers/groups_helper.rb
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-09-06 12:19:03 +0100
committerPhil Hughes <me@iamphill.com>2017-09-06 12:19:03 +0100
commit80a013ef4f1c6dc982023dc39c27063ab1d3e121 (patch)
treef23cd0ea6e45bdfb7db2711e883119fa30a48ac0 /app/helpers/groups_helper.rb
parent2aa8a75f69e338a94cca52a43058d156c0e3a1a1 (diff)
downloadgitlab-ce-80a013ef4f1c6dc982023dc39c27063ab1d3e121.tar.gz
removed show_new_nav? referencesbreadcrumbs-improvements
Diffstat (limited to 'app/helpers/groups_helper.rb')
-rw-r--r--app/helpers/groups_helper.rb28
1 files changed, 6 insertions, 22 deletions
diff --git a/app/helpers/groups_helper.rb b/app/helpers/groups_helper.rb
index 9e7c25492b7..eab1feb8a1f 100644
--- a/app/helpers/groups_helper.rb
+++ b/app/helpers/groups_helper.rb
@@ -16,35 +16,19 @@ module GroupsHelper
full_title = ''
group.ancestors.reverse.each_with_index do |parent, index|
- if show_new_nav? && index > 0
+ if index > 0
add_to_breadcrumb_dropdown(group_title_link(parent, hidable: false, show_avatar: true), location: :before)
else
- full_title += if show_new_nav?
- breadcrumb_list_item group_title_link(parent, hidable: false)
- else
- "#{group_title_link(parent, hidable: true)} <span class='hidable'> / </span>".html_safe
- end
+ full_title += breadcrumb_list_item group_title_link(parent, hidable: false)
end
end
- if show_new_nav?
- full_title += render "layouts/nav/breadcrumbs/collapsed_dropdown", location: :before, title: _("Show parent subgroups")
- end
+ full_title += render "layouts/nav/breadcrumbs/collapsed_dropdown", location: :before, title: _("Show parent subgroups")
- full_title += if show_new_nav?
- breadcrumb_list_item group_title_link(group)
- else
- group_title_link(group)
- end
+ full_title += breadcrumb_list_item group_title_link(group)
full_title += ' &middot; '.html_safe + link_to(simple_sanitize(name), url, class: 'group-path breadcrumb-item-text js-breadcrumb-item-text') if name
- if show_new_nav?
- full_title.html_safe
- else
- content_tag :span, class: 'group-title' do
- full_title.html_safe
- end
- end
+ full_title.html_safe
end
def projects_lfs_status(group)
@@ -86,7 +70,7 @@ module GroupsHelper
def group_title_link(group, hidable: false, show_avatar: false)
link_to(group_path(group), class: "group-path breadcrumb-item-text js-breadcrumb-item-text #{'hidable' if hidable}") do
output =
- if (group.try(:avatar_url) || show_avatar)) && !Rails.env.test?
+ if (group.try(:avatar_url) || show_avatar) && !Rails.env.test?
image_tag(group_icon(group), class: "avatar-tile", width: 15, height: 15)
else
""