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:
authorMarcia Ramos <marcia@gitlab.com>2019-07-02 11:39:46 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2019-07-02 11:39:46 +0300
commit410f9467f0f9f1c70abf7652ef2c3a237ce9362c (patch)
tree0522e502bf1824542e5e97558847bc573d8dc0da /layouts/global_nav.html
parent7bd7842c520ca971fe0664afd50dea8c93c00420 (diff)
Update global nav
Diffstat (limited to 'layouts/global_nav.html')
-rw-r--r--layouts/global_nav.html31
1 files changed, 13 insertions, 18 deletions
diff --git a/layouts/global_nav.html b/layouts/global_nav.html
index e3c23fde..6eb41f71 100644
--- a/layouts/global_nav.html
+++ b/layouts/global_nav.html
@@ -29,16 +29,12 @@
<%= cat[:category_title] %>
</a>
<% else %>
- <% if dir == 'ce' && cat[:ee_only] %>
- <a class="global-nav-link level-1 <% if @item.path == "/#{dir}/#{cat[:category_url]}" %>active<% end %>" href="/ee/<%= cat[:category_url] %>">
- <%= cat[:category_title] %>
+ <a class="global-nav-link level-1 <% if @item.path == "/#{dir}/#{cat[:category_url]}" %>active<% end %>" href="/<%= dir %>/<%= cat[:category_url] %>">
+ <%= cat[:category_title] %>
+ <% if cat[:ee_only] %>
<span class="badges-drop global-nav-badges" data-toggle="tooltip" data-placement="top" title="Not available in GitLab free tiers"><i class="fa fa-info-circle" aria-hidden="true"></i></span>
- </a>
- <% else %>
- <a class="global-nav-link level-1 <% if @item.path == "/#{dir}/#{cat[:category_url]}" %>active<% end %>" href="/<%= dir %>/<%= cat[:category_url] %>">
- <%= cat[:category_title] %>
- </a>
- <% end %><!-- end of dir == 'ce' && cat[:ee_only] -->
+ <% end %><!-- end of if cat[:ee_only] -->
+ </a>
<% end %><!-- end of if dir != 'ce' -->
<% end %><!-- end of if cat[:external_url] -->
</span>
@@ -55,18 +51,17 @@
<% if dir != 'ce' %>
<a class="global-nav-link level-2 <% if @item.path == "/#{dir}/#{doc[:doc_url]}" %>active<% end %>" href="/ee/<%= doc[:doc_url] %>">
<%= doc[:doc_title] %>
+ <% if doc[:ee_only] %>
+ <span class="badges-drop global-nav-badges" data-toggle="tooltip" data-placement="top" title="Not available in GitLab free tiers"><i class="fa fa-info-circle" aria-hidden="true"></i></span>
+ <% end %><!-- end if doc[:ee_only] -->
</a>
<% else %>
- <% if dir == 'ce' && doc[:ee_only] %>
- <a class="global-nav-link level-2 <% if @item.path == "/#{dir}/#{doc[:doc_url]}" %>active<% end %>" href="/ee/<%= doc[:doc_url] %>">
- <%= doc[:doc_title] %>
+ <a class="global-nav-link level-2 <% if @item.path == "/#{dir}/#{doc[:doc_url]}" %>active<% end %>" href="/<%= dir %>/<%= doc[:doc_url] %>">
+ <%= doc[:doc_title] %>
+ <% if doc[:ee_only] %>
<span class="badges-drop global-nav-badges" data-toggle="tooltip" data-placement="top" title="Not available in GitLab free tiers"><i class="fa fa-info-circle" aria-hidden="true"></i></span>
- </a>
- <% else %>
- <a class="global-nav-link level-2 <% if @item.path == "/#{dir}/#{doc[:doc_url]}" %>active<% end %>" href="/<%= dir %>/<%= doc[:doc_url] %>">
- <%= doc[:doc_title] %>
- </a>
- <% end %><!-- end of dir == 'ce' && cat[:ee_only] -->
+ <% end %><!-- end if doc[:ee_only] -->
+ </a>
<% end %><!-- end of if dir != 'ce' -->
<% end %><!-- end of if doc[:external_url] -->
</span>