diff options
author | Marcel Amirault <mamirault@gitlab.com> | 2020-06-11 16:44:43 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2020-06-11 16:44:43 +0300 |
commit | c4e746034d735b52ba56ed08ee653bba22a4c7b6 (patch) | |
tree | 022c643f37901212b8dd042da4e5df630599a02b /layouts/global_nav.html | |
parent | e45718144448870d93d313417865cb6e1799b5e7 (diff) |
Add core to top level nav item
Diffstat (limited to 'layouts/global_nav.html')
-rw-r--r-- | layouts/global_nav.html | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/layouts/global_nav.html b/layouts/global_nav.html index b04b76ec..4107f541 100644 --- a/layouts/global_nav.html +++ b/layouts/global_nav.html @@ -13,6 +13,9 @@ nav_items = nav_items_exists ? @items[nav_items_dir] : @items["/_data/default-na <% section_href = is_ee_prefixed ? "/ee/#{sec[:section_url]}" : "/#{dir}/#{sec[:section_url]}" %> <a class="global-nav-link level-0 <% if @item.path == "/#{dir}/#{sec[:section_url]}" %>active<% end %>" href="<%= section_href %>"> <%= sec[:section_title] %> + <% if sec[:ee_only] %> + <span class="badges-drop global-nav-badges" data-toggle="tooltip" data-placement="top" title="Available in <%= sec[:ee_tier] %>"><i class="fa fa-info-circle" aria-hidden="true"></i></span> + <% end %><!-- end of if sec[:ee_only] --> </a> <div class="section-title <% if sec[:section_categories] %>collapse-toggle<% end %> <% if @item.path == "/#{dir}/#{sec[:section_url]}" %>active<% else %>collapsed<% end %>" data-toggle="collapse" aria-expanded="false" data-target="#<%= sec[:section_title].gsub(/[\s\/\(\)]/, '') %>"></div> </span> |