parent
3527312189
commit
f46888fd3e
1 changed files with 3 additions and 3 deletions
|
@ -21,7 +21,7 @@ module GroupsHelper
|
||||||
|
|
||||||
group.ancestors.reverse.each_with_index do |parent, index|
|
group.ancestors.reverse.each_with_index do |parent, index|
|
||||||
if index > 0
|
if index > 0
|
||||||
add_to_breadcrumb_dropdown(group_title_link(parent, hidable: false, show_avatar: true), location: :before)
|
add_to_breadcrumb_dropdown(group_title_link(parent, hidable: false, show_avatar: true, for_dropdown: true), location: :before)
|
||||||
else
|
else
|
||||||
full_title += breadcrumb_list_item group_title_link(parent, hidable: false)
|
full_title += breadcrumb_list_item group_title_link(parent, hidable: false)
|
||||||
end
|
end
|
||||||
|
@ -85,8 +85,8 @@ module GroupsHelper
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def group_title_link(group, hidable: false, show_avatar: false)
|
def group_title_link(group, hidable: false, show_avatar: false, for_dropdown: false)
|
||||||
link_to(group_path(group), class: "group-path breadcrumb-item-text js-breadcrumb-item-text #{'hidable' if hidable}") do
|
link_to(group_path(group), class: "group-path #{'breadcrumb-item-text' unless for_dropdown} js-breadcrumb-item-text #{'hidable' if hidable}") do
|
||||||
output =
|
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)
|
image_tag(group_icon(group), class: "avatar-tile", width: 15, height: 15)
|
||||||
|
|
Loading…
Reference in a new issue