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-02-16 13:29:11 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2018-02-16 13:29:11 +0300
commit4f3b754388a7eadb6d9f74c397257fd1a367fb7e (patch)
tree2bd2c0103da363df2ad4d642b55eae78cf5fe742 /layouts/archives.html
parent9ccfbd0529128e545fe2fb39dce904a432b4f22a (diff)
Add an archive Docker image and a test archives page
Diffstat (limited to 'layouts/archives.html')
-rw-r--r--layouts/archives.html36
1 files changed, 36 insertions, 0 deletions
diff --git a/layouts/archives.html b/layouts/archives.html
new file mode 100644
index 00000000..9669dc33
--- /dev/null
+++ b/layouts/archives.html
@@ -0,0 +1,36 @@
+<!DOCTYPE HTML>
+<html lang="en">
+ <%= render '/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 %>
+ <div class="article-content js-article-content">
+ <%= yield %>
+ </div>
+ </div>
+ </div>
+ </body>
+
+ <%= render '/footer.*' %>
+ <%= render '/analytics.*' %>
+ <%= render '/https_redirect.*' %>
+</html>