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

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axil@gitlab.com>2018-04-09 14:42:08 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2018-04-09 19:00:22 +0300
commit764239468a728daae24e947a4c7484ebef5e8689 (patch)
tree0f0e3956482ee6c6b270fcff44c1730e4f6c27f5 /layouts/archives.html
parentabbafef38451c233df92d83e57b4cf46ce677a36 (diff)
Add dynamic archives
Diffstat (limited to 'layouts/archives.html')
-rw-r--r--layouts/archives.html39
1 files changed, 39 insertions, 0 deletions
diff --git a/layouts/archives.html b/layouts/archives.html
new file mode 100644
index 00000000..ec3f9188
--- /dev/null
+++ b/layouts/archives.html
@@ -0,0 +1,39 @@
+<!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 '/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">
+ <%= 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>
+ <script src="https://cdn.jsdelivr.net/jquery/3.2.1/jquery.min.js"></script>
+ <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
+ <script src="https://cdn.jsdelivr.net/npm/clipboard@2/dist/clipboard.min.js"></script>
+ <script type="application/javascript" src="/assets/javascripts/clipboardjs.js"></script>
+ <%= render '/footer.*' %>
+ <%= render '/docsearch.*' %>
+ <%= render '/analytics.*' %>
+ <%= render '/https_redirect.*' %>
+ <%= render '/schema-microdata.*' %>
+</body>
+</html>