default.html 4 KB
Newer Older
Connor Shea's avatar
Connor Shea committed
1
<!DOCTYPE HTML>
Marcia Ramos's avatar
Marcia Ramos committed
2
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US" prefix="og: http://ogp.me/ns#">
3
4
<head>
<%= render '/head.*' %>
5
<%= render '/canonical_urls.*' %>
6
</head>
Jacques Erasmus's avatar
Jacques Erasmus committed
7
<body itemscope itemtype="http://schema.org/WebPage" data-spy="scroll" data-target="#doc-nav" data-offset="90">
Marcia Ramos's avatar
Marcia Ramos committed
8
  <%= render '/gtm.*' %>
9
  <%= render '/header.*' %>
10
11
  <div id="js-version-banner" <%= 'data-is-outdated' if show_version_banner? %> data-latest-version-url="<%= @item.identifier.without_ext + '.html' %>" data-archives-url="/archives/"></div>

David O'Regan's avatar
David O'Regan committed
12
  <div class="wrapper d-flex justify-center">
13
14
15
16
17
18
    <div class="nav-wrapper active">
      <aside id="global-nav" class="global-nav">
      <% if ENV['CI_PROJECT_NAME'] == 'gitlab-docs' or ENV['CI_PROJECT_NAME'].nil? %>
        <%= render '/global_nav.*' %>
      <% end %>
      </aside>
Jacques Erasmus's avatar
Jacques Erasmus committed
19
      <div id="js-nav-toggle"></div>
20
    </div>
21
    <div class="main class js-main-wrapper">
David O'Regan's avatar
David O'Regan committed
22
23
24
      <div class="d-none d-lg-block">
        <%= render '/breadcrumbs.*' %>
      </div>
25
      <% if @item[:title] %>
26
        <h1 class="article-title" itemprop="name">
Marcia Ramos's avatar
Marcia Ramos committed
27
          <%= @item[:title] %><%= @item[:title_badge] %>
28
29
        </h1>
      <% end %>
30
31
      <div class="article-metadata">
        <% if @item[:author] and @item[:author_gitlab] %>
32
33
          Article written by <a href="https://gitlab.com/<%= @item[:author_gitlab] %>" target="_blank"><%= @item[:author] %></a>
          &#8226;
34
35
36
        <% end %>
        <% if @item[:date] %>
          on <%= @item[:date] %>
37
          &#8226;
38
39
        <% end %>
        <% if @item[:article_type] %>
40
          Type: <%= @item[:article_type] %>
41
42
        <% end %>
        <% if @item[:level] %>
43
          Level: <%= @item[:level] %>
44
45
46
47
48
49
50
51
52
53
          &#8226;
        <% end %>
        <% if @item[:last_updated] %>
          Last updated: <%= @item[:last_updated] %>
          &#8226;
        <% end %>
        <% if @item[:reading_time] %>
          <%= reading_time(item.raw_content.split.size) %> to read
        <% end %>
      </div>
54
      <div class="article-content js-article-content" role="main" itemscope itemprop="mainContentOfPage">
55
56
        <%= yield %>
      </div>
57
      <%= render '/feedback.*' %>
David O'Regan's avatar
David O'Regan committed
58
      <%= render '/footer.*' %>
59
    </div>
David O'Regan's avatar
David O'Regan committed
60
61
62
63
    <div id="doc-nav" class="doc-nav"></div>
    <div class="d-lg-none">
      <%= render '/breadcrumbs.*' %>
    </div>
64
  </div>
65
  <script src="https://cdn.jsdelivr.net/npm/jquery@3.3.1/dist/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
66
67
  <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
  <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
68
69
70
71
72
73
74
75
76
  <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" crossorigin="anonymous"></script>
  <script>
    $(function () {
      $('[data-toggle="popover"]').popover();
      $('.popover-dismiss').popover({
        trigger: 'focus'
      })
    })
  </script>
77
  <script src="https://cdn.jsdelivr.net/npm/clipboard@2/dist/clipboard.min.js"></script>
78
79
  <script type="application/javascript" src="<%= @items['/assets/javascripts/clipboardjs.*'].path %>"></script>
  <script type="application/javascript" src="<%= @items['/assets/javascripts/badges.*'].path %>"></script>
80
  <%= render '/docsearch.*' %>
81
  <%= render '/mermaid.*' %>
82
  <% if is_production? %>
Achilleas Pipinellis's avatar
Achilleas Pipinellis committed
83
84
85
  <%# Add analytics only in production %>
    <%= render '/analytics.*' %>
  <% end %>
86
  <script src="<%= @items['/assets/javascripts/docs.*'].path %>"></script>
87
  <script src="<%= @items['/assets/javascripts/global-nav.*'].path %>"></script>
88
  <script src="<%= @items['/assets/javascripts/tables.*'].path %>"></script>
89
  <script src="<%= @items['/frontend/default/default.*'].path %>" data-cookieconsent="ignore"></script>
90
  <%= icons_sprite %>
91
</body>
Connor Shea's avatar
Connor Shea committed
92
</html>