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: 5e17af9818196f989a3ab250a3baeb018439159c (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
<div class="header align-items-center px-3">
  <div class="d-flex align-items-center py-1">
    <a class="header-link logo-container d-flex justify-content-center align-items-center" href="/">
      <img src="<%= @items['/assets/images/gitlab-logo.svg'].path %>" alt="GitLab logo" class="logo" />
      <p><span class="header-company-name">GitLab </span><strong>Docs</strong></p>
    </a>
    <% if @item[:searchbar].nil? %>
      <% unless @item.identifier.to_s.split('/')[1] == 'search' %>
      <form id="search-form" action="/search/" method="get">
        <input type="text" name="query" class="docsearch" placeholder="Search our docs" required/>
        <input type="submit" style="visibility: hidden; position:absolute;" />
      </form>
      <% end %>
    <% end %>
  </div>
  <div class="nav-container w-100 ml-4">
    <a class="nav-toggle" id="docs-nav-toggle">
      <i class="fa fa-bars text-white" aria-hidden="true"></i>
    </a>
    <ul class="nav align-items-center">
      <li class="nav-item flex-grow-1">
        <div class="d-flex align-items-center">
          <%= render '/versions_dropdown.*' %>
        </div>
      </li>
      <% if 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 %>
      <li class="nav-item">
        <%= render '/cta.*' %>
      </li>
    </ul>
  </div>
</div>