blob: 1446ffefe6d47acb6b647d339fc3193fe704cd05 (
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
33
|
<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">
<li class="search"><input type="text" class="docsearch" placeholder="Search"></li>
<% 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>
|