blob: fdec71d3ab52a3edbe55a049f8cab1fd821dc2ec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
<div class="header">
<a href="/">
<img src="<%= @items['/assets/images/gitlab-logo.svg'].path %>" width="50" />
<p>GitLab Documentation</p>
</a>
<div class="nav-container">
<a class="nav-toggle" id="docs-nav-toggle">Menu</a>
<ul class="nav">
<% if ENV['NANOC_ENV'] == 'production' %>
<% @config[:products].each do |name, product| %>
<% if product[:expose] == true %>
<li class="nav-item">
<a href="<%= @items["/#{product[:slug]}/#{product[:index_file]}"].path %>">
<%= product[:short_name] %>
</a>
</li>
<% end %>
<% end %>
<% else %>
<% @config[:products].each do |name, product| %>
<% if Dir.exist?("#{@config[:content_dir]}/#{product[:slug]}")%>
<li class="nav-item">
<a href="<%= @items["/#{product[:slug]}/#{product[:index_file]}"].path %>">
<%= product[:short_name] %>
</a>
</li>
<% end %>
<% end %>
<% end %>
</ul>
</div>
</div>
|