summaryrefslogtreecommitdiff
path: root/app/helpers/groups_helper.rb
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-08-18 17:19:23 +0100
committerPhil Hughes <me@iamphill.com>2017-08-18 17:19:23 +0100
commita8460f215cc1949b993e774dc00bad0b506abcfa (patch)
tree57bc21d53cc2b264e622edbacbaa3b53282cc684 /app/helpers/groups_helper.rb
parent4e74eb8178faaf364a421a5113877db434d365e8 (diff)
downloadgitlab-ce-a8460f215cc1949b993e774dc00bad0b506abcfa.tar.gz
style updates
fixed some more breadcrumb titles
Diffstat (limited to 'app/helpers/groups_helper.rb')
-rw-r--r--app/helpers/groups_helper.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/helpers/groups_helper.rb b/app/helpers/groups_helper.rb
index 7f43e4106fc..3edeb406b36 100644
--- a/app/helpers/groups_helper.rb
+++ b/app/helpers/groups_helper.rb
@@ -17,7 +17,7 @@ module GroupsHelper
group.ancestors.reverse.each_with_index do |parent, index|
if show_new_nav? && index > 0
- add_to_breadcrumb_dropdown(group_title_link(parent, hidable: false), location: :before)
+ 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)
@@ -83,10 +83,10 @@ module GroupsHelper
private
- def group_title_link(group, hidable: false)
+ def group_title_link(group, hidable: false, show_avatar: false)
link_to(group_path(group), class: "group-path #{'hidable' if hidable}") do
output =
- if show_new_nav? && group.try(:avatar_url)
+ if show_new_nav? && group.try(:avatar_url) || (show_new_nav? && show_avatar)
image_tag(group_icon(group), class: "avatar-tile", width: 16, height: 16)
else
""