blob: e01ac22d0d54fd3226fccc90a191bb9ce4ed877f (
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
|
<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US" prefix="og: http://ogp.me/ns#">
<head>
<%= render '/head.*' %>
</head>
<body>
<%= render '/gtm.*' %>
<%= render '/header.*' %>
<div class="wrapper">
<div class="main class js-main-wrapper">
<div class="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">
<a class="btn btn-tanuki btn-default" href="<%= edit_on_gitlab(@item) %>">Edit this page</a>
<a class="btn btn-tanuki btn-default" href="<%= edit_on_gitlab(@item, editor: :webide) %>">Web IDE</a>
</div>
<% end %>
<% if @item[:last_updated] %>
<hr>
<p class="last-updated" style="padding-bottom: 24px;">
<em>Last updated <%= @item[:last_updated] %></em>
</p>
<% end %>
</div>
<div class="clear"></div>
</div>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.3.1/dist/jquery.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/clipboard@2/dist/clipboard.min.js"></script>
<script type="application/javascript" src="<%= @items['/assets/javascripts/clipboardjs.*'].path %>"></script>
<script type="application/javascript" src="<%= @items['/assets/javascripts/badges.*'].path %>"></script>
<%= render '/footer.*' %>
<%= render '/docsearch.*' %>
<% if ENV['NANOC_ENV'] == 'production' %>
<%# Add analytics only in production %>
<%= render '/analytics.*' %>
<% end %>
<%= render '/https_redirect.*' %>
<%= render '/schema-microdata.*' %>
</body>
</html>
|