diff options
author | Phil Hughes <me@iamphill.com> | 2017-08-16 12:35:59 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-08-18 13:07:05 +0300 |
commit | 85b272b22365a7e4588d4897ad9ce78ea180f124 (patch) | |
tree | 89e40128c2a38ce85b85621b7da6fa688e0565c7 /app/helpers/groups_helper.rb | |
parent | 52252e70e8222e573901632a03d408f3f8698f63 (diff) |
updated a bunch of breadcrumb titles
[ci skip]
Diffstat (limited to 'app/helpers/groups_helper.rb')
-rw-r--r-- | app/helpers/groups_helper.rb | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/app/helpers/groups_helper.rb b/app/helpers/groups_helper.rb index 4123a96911f..1badaf721f2 100644 --- a/app/helpers/groups_helper.rb +++ b/app/helpers/groups_helper.rb @@ -15,17 +15,27 @@ module GroupsHelper @has_group_title = true full_title = '' - group.ancestors.reverse.each do |parent| - full_title += group_title_link(parent, hidable: true) - - full_title += '<span class="hidable"> / </span>'.html_safe + group.ancestors.reverse.each_with_index do |parent, index| + full_title += if show_new_nav? + breadcrumb_list_item group_title_link(parent, hidable: index > 0) + else + group_title_link(parent, hidable: true) + end end - full_title += group_title_link(group) + full_title += if show_new_nav? + breadcrumb_list_item group_title_link(group) + else + group_title_link(group) + end full_title += ' · '.html_safe + link_to(simple_sanitize(name), url, class: 'group-path') if name - content_tag :span, class: 'group-title' do + if show_new_nav? full_title.html_safe + else + content_tag :span, class: 'group-title' do + full_title.html_safe + end end end |