blob: b08da70f85987a190c35bae9bc9bdaacd120cfd7 (
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
|
<!DOCTYPE HTML>
<html lang="en">
<head>
<%= render '/head.*' %>
<%= render '/canonical_urls.*' %>
</head>
<body>
<%= render '/header.*' %>
<div class="wrapper">
<div class="main class js-main-wrapper">
<% if @config[:breadcrumbs] %>
<% ancestor_array = ancestor_path_array(@item) unless ancestor_path_array(@item).empty? %>
<% if ancestor_array %>
<ul class="breadcrumbs">
<% ancestor_array.reverse_each do |item| %>
<li class="breadcrumb"><%= link_to item.key?(:title) ? "#{item[:title]}" : "Breadcrumb", item %></li>
<% end %>
<li class="breadcrumb"><%= @item.key?(:title) ? "#{@item[:title]}" : "Current page" %></li>
</ul>
<% end %>
<% end %>
<div id="doc-nav" class="doc-nav">
</div>
<% if @item[:title] %>
<h1 class="article-title">
<%= @item[:title] %>
</h1>
<% end %>
<% if @item[:author] %>
<div class="article-metadata">
Article written by <a href="https://gitlab.com/<%= @item[:author_gitlab] %>" target="_blank"><%= @item[:author] %></a>
on <%= @item[:date] %>
•
<% if @item[:last_updated] %>
Last updated: <%= @item[:last_updated] %>
•
<% end %>
Type: <%= @item[:article_type] %>
•
Level: <%= @item[:level] %>
</div>
<% end %>
<div class="article-content js-article-content">
<%= yield %>
</div>
<% if ENV['NANOC_ENV'] == 'production' && ENV['CI_COMMIT_REF_NAME'] == 'master' %>
<%# Show Edit button only in production and on master branch (hide archives) %>
<div class="edit-on">
<%= edit_on_gitlab(@item) %>
</div>
<% end %>
<% if @item[:last_updated] %>
<hr>
<p class="last-updated">
<em>Last updated <%= @item[:last_updated] %></em>
</p>
<% end %>
<%= render '/disqus.*' %>
</div>
<div class="clear"></div>
</div>
<%= render '/footer.*' %>
<%= render '/docsearch.*' %>
<%= render '/analytics.*' %>
<%= render '/https_redirect.*' %>
</body>
</html>
|