diff options
author | Evan Read <eread@gitlab.com> | 2021-02-03 03:08:05 +0300 |
---|---|---|
committer | Evan Read <eread@gitlab.com> | 2021-04-06 07:36:24 +0300 |
commit | 1698c76cd01c5b3757335ba9b010c9732f38eeb2 (patch) | |
tree | 839c8528fae12860c7f7e9b448e993f4b8e82c66 /layouts/global_nav.html | |
parent | b84f28e790547c0cd86623638dc794cb5b6c4c1c (diff) |
Unify global navigation for docs site
Diffstat (limited to 'layouts/global_nav.html')
-rw-r--r-- | layouts/global_nav.html | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/layouts/global_nav.html b/layouts/global_nav.html index 49ebe7e5..1d01ed1c 100644 --- a/layouts/global_nav.html +++ b/layouts/global_nav.html @@ -7,7 +7,6 @@ <span class="global-nav-block-top nav-link"> <a class="global-nav-link level-0 <%= sec.has_children? ? 'has-collapse' : '' %> <%= navigation.show_element?(sec) ? 'active' : '' %>" href="<%= navigation.element_href(sec) %>"> <%= sec.title %> - <%= navigation.optional_ee_badge(sec) %> </a> <div class="section-title <%= sec.has_children? ? 'collapse-toggle': '' %> <%= navigation.show_element?(sec) ? 'active' : 'collapsed' %>" data-toggle="collapse" aria-expanded="false" data-target="#sec_<%= sec_uuid %>"></div> </span> @@ -25,7 +24,6 @@ <% else %> <a class="global-nav-link level-1 <%= cat.has_children? ? 'has-collapse' : '' %> <%= navigation.show_element?(cat) ? 'active' : '' %>" href="<%= navigation.element_href(cat) %>"> <%= cat.title %> - <%= navigation.optional_ee_badge(cat) %> </a> <% end %><!-- end of if cat[:external_url] --> <div class="<%= cat.has_children? ? 'collapse-toggle' : '' %> <%= navigation.show_element?(cat) ? 'active' : 'collapsed' %>" data-toggle="collapse" aria-expanded="false" data-target="#cat_<%= cat_uuid %>"></div> @@ -44,7 +42,6 @@ <% else%> <a class="global-nav-link level-2 <%= doc.has_children? ? 'has-collapse' : '' %> <%= navigation.show_element?(doc) ? 'active' : '' %>" href="<%= navigation.element_href(doc) %>"> <%= doc.title %> - <%= navigation.optional_ee_badge(doc) %> </a> <% end %><!-- end of if doc[:external_url] --> <div class="<%= doc.has_children? ? 'collapse-toggle' : '' %> <%= navigation.show_element?(doc) ? 'active' : 'collapsed' %>" data-toggle="collapse" aria-expanded="false" data-target="#doc_<%= doc_uuid %>"></div> @@ -63,7 +60,6 @@ <% else%> <a class="global-nav-link level-3 <%= doc.has_children? ? 'has-collapse' : '' %> <%= navigation.show_element?(doc) ? 'active' : '' %>" href="<%= navigation.element_href(doc) %>"> <%= doc.title %> - <%= navigation.optional_ee_badge(doc) %> </a> <% end %><!-- end of if doc[:external_url] --> <div class="<%= doc.has_children? ? 'collapse-toggle' : '' %> <%= navigation.show_element?(doc) ? 'active' : 'collapsed' %>" data-toggle="collapse" aria-expanded="false" data-target="#doc_<%= doc_uuid %>"></div> @@ -81,7 +77,6 @@ <% else%> <a class="global-nav-link level-4 <%= navigation.show_element?(doc) ? 'active' : '' %>" href="<%= navigation.element_href(doc) %>"> <%= doc.title %> - <%= navigation.optional_ee_badge(doc) %> </a> <% end %><!-- end of if doc[:external_url] --> </span> |