Welcome to mirror list, hosted at ThFree Co, Russian Federation.

header.html « layouts - gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a039c8af8e3f1841dd267f4782eefe0aacba9f4d (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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<div class="header">
  <div class="flex-container align-center">
    <a class="header-link logo-container flex-container justify-center align-center" href="/">
      <img src="<%= @items['/assets/images/gitlab-logo.svg'].path %>" class="logo" />
      <p>GitLab <strong>Docs</strong></p>
    </a>
    <% unless @item.identifier.to_s.split('/')[1] == 'search' %>
    <form id="search-form" action="/search/" method="get">
      <input type="text" name="q" class="docsearch" placeholder="Search" required/>
      <input type="submit" style="visibility: hidden; position:absolute;" />
    </form>
    <% end %>
    <!-- versions dropdown-->
    <div class="dropdown">
      <a role="button" class="btn btn-versions dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" id="versions">
        Versions
        <span class="caret"></span>
      </a>
      <ul class="dropdown-menu versions-menu" aria-labelledby="versions">
        <li>
          <a href='<%= @item.identifier.without_ext + '.html' %>' class="versions-tooltip">master</a>
            <i class="fa fa-question-circle-o" aria-hidden="true" data-toggle="tooltip" data-placement="bottom" title="The latest docs from GitLab's master branches, to which this site defaults."></i>
          </a>
        </li>
        <li role="separator" class="divider"></li>
        <li>
          <a href='/<%= @items['/_data/versions.yaml'][:current].first %><%= @item.identifier.without_ext + '.html' %>'>
          <%= @items['/_data/versions.yaml'][:current].first %>
          </a>
        </li>
        <% @items['/_data/versions.yaml'][:previous].each do |version| %>
        <li>
          <a href='/<%= version %><%= @item.identifier.without_ext + '.html' %>'>
            <%= version %>
          </a>
        </li>
        <% end %>
        <li role="separator" class="divider"></li>
        <li><a href='/archives/'>Archives</a></li>
      </ul>
    </div>
    <!-- versions dropdown-->
  </div>
  <div class="nav-container">
    <a class="nav-toggle" id="docs-nav-toggle">
      <i class="fa fa-bars" aria-hidden="true"></i>
    </a>
    <ul class="nav">
      <% unless @item.identifier.to_s.split('/')[1] == 'search' %>
      <li class="nav-item">
        <form id="mobile-search-form" action="/search/" method="get">
          <input type="text" name="q" class="docsearch docsearch-mobile" placeholder="Search" required/>
          <input type="submit" style="visibility: hidden; position:absolute;" />
        </form>
      </li>
      <% end %>
      <% 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>