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:
authorVasilii Iakliushin <viakliushin@gitlab.com>2020-11-06 18:00:19 +0300
committerVasilii Iakliushin <viakliushin@gitlab.com>2020-11-16 23:23:39 +0300
commit2948b293efd2929944eaabfefcdd0f8c4465a06c (patch)
tree5b1bb5a27a621b281d654c0f5e812cc069d787f5 /layouts/global_nav.html
parent43e56b085a8176c82c39148ba8a2c003742e4b55 (diff)
Do not render inactive navigation sidebar sections
Contributes to https://gitlab.com/gitlab-org/gitlab-docs/-/issues/879 It saves up to 50% of the compiled files size
Diffstat (limited to 'layouts/global_nav.html')
-rw-r--r--layouts/global_nav.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/global_nav.html b/layouts/global_nav.html
index 1bf3795a..f5b587a1 100644
--- a/layouts/global_nav.html
+++ b/layouts/global_nav.html
@@ -12,7 +12,7 @@
</span>
<!-- nav categories -->
- <% if sec.has_children? %>
+ <% if sec.has_children? && sec.enabled %>
<div class="collapse <%= navigation.show_element?(sec) ? 'show' : '' %>" id="<%= navigation.id_for(sec) %>">
<% sec.children.each do |cat| %>
<span class="global-nav-cat nav-link">