diff options
author | Evan Read <eread@gitlab.com> | 2019-09-04 18:21:46 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2019-09-04 18:21:46 +0300 |
commit | 7fd0463805c66088ff7e096c4d3ba2c65c0fb9ac (patch) | |
tree | c52eb52d1478e48c15f74a66b5e3e9e74f0573fc /layouts/global_nav.html | |
parent | 22aebfe6869014559d391cb1ce4bfbf48ce9a2fe (diff) |
Rename Geo categories items
Remove repetitive tier badging because parent
nav items are already badged.
Diffstat (limited to 'layouts/global_nav.html')
-rw-r--r-- | layouts/global_nav.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/layouts/global_nav.html b/layouts/global_nav.html index 14b4bd84..b04b76ec 100644 --- a/layouts/global_nav.html +++ b/layouts/global_nav.html @@ -14,12 +14,12 @@ nav_items = nav_items_exists ? @items[nav_items_dir] : @items["/_data/default-na <a class="global-nav-link level-0 <% if @item.path == "/#{dir}/#{sec[:section_url]}" %>active<% end %>" href="<%= section_href %>"> <%= sec[:section_title] %> </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> + <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> <!-- nav categories --> <% if sec[:section_categories] %> - <div class="collapse <% if @item.path == "/#{dir}/#{sec[:section_url]}" %>show<% end %>" id="<%= sec[:section_title].gsub(/[\s\/]/, '') %>"> + <div class="collapse <% if @item.path == "/#{dir}/#{sec[:section_url]}" %>show<% end %>" id="<%= sec[:section_title].gsub(/[\s\/\(\)]/, '') %>"> <% sec[:section_categories].each do |cat| %> <span class="global-nav-cat nav-link"> <% if cat[:external_url] %> @@ -35,12 +35,12 @@ nav_items = nav_items_exists ? @items[nav_items_dir] : @items["/_data/default-na <% end %><!-- end of if cat[:ee_only] --> </a> <% end %><!-- end of if cat[:external_url] --> - <div class="<% if cat[:docs] %>collapse-toggle<% end %> <% if @item.path == "/#{dir}/#{cat[:category_url]}" %>active<% else %>collapsed<% end %>" data-toggle="collapse" aria-expanded="false" data-target="#<%= cat[:category_title].gsub(/[\s\/]/, '') %>"></div> + <div class="<% if cat[:docs] %>collapse-toggle<% end %> <% if @item.path == "/#{dir}/#{cat[:category_url]}" %>active<% else %>collapsed<% end %>" data-toggle="collapse" aria-expanded="false" data-target="#<%= cat[:category_title].gsub(/[\s\/\(\)]/, '') %>"></div> </span> <!-- nav docs --> <% if cat[:docs] %> - <div class="collapse <% if @item.path == "/#{dir}/#{cat[:category_url]}" %>show<% end %>" id="<%= cat[:category_title].gsub(/[\s\/]/, '') %>"> + <div class="collapse <% if @item.path == "/#{dir}/#{cat[:category_url]}" %>show<% end %>" id="<%= cat[:category_title].gsub(/[\s\/\(\)]/, '') %>"> <% cat[:docs].each do |doc| %> <span class="nav-link"> <% if doc[:external_url] %> |