Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Amirault <mamirault@gitlab.com>2020-06-11 16:44:43 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2020-06-11 16:44:43 +0300
commitc4e746034d735b52ba56ed08ee653bba22a4c7b6 (patch)
tree022c643f37901212b8dd042da4e5df630599a02b /layouts/global_nav.html
parente45718144448870d93d313417865cb6e1799b5e7 (diff)
Add core to top level nav item
Diffstat (limited to 'layouts/global_nav.html')
-rw-r--r--layouts/global_nav.html3
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>