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-10-22 16:16:54 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2018-10-22 17:13:30 +0300
commit337d25608f983bc751a98062b42128d8ed4a14db (patch)
tree34f87c917e2c46a2277afeb8c04d5980926f6849 /layouts/header.html
parent3065b5a6b360abae5adcb71c35a7a061dbe901a2 (diff)
Use only two versions lists: online and offline
This is the MVC to automate the version release process
Diffstat (limited to 'layouts/header.html')
-rw-r--r--layouts/header.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/layouts/header.html b/layouts/header.html
index c73af613..2ce795ee 100644
--- a/layouts/header.html
+++ b/layouts/header.html
@@ -24,11 +24,11 @@
</li>
<li role="separator" class="divider"></li>
<li>
- <a href='/<%= @items['/_data/versions.yaml'][:current].first %><%= @item.identifier.without_ext + '.html' %>'>
- <%= @items['/_data/versions.yaml'][:current].first %>
+ <a href='/<%= @items['/_data/versions.yaml'][:online].first %><%= @item.identifier.without_ext + '.html' %>'>
+ <%= @items['/_data/versions.yaml'][:online].first %>
</a>
</li>
- <% @items['/_data/versions.yaml'][:previous].each do |version| %>
+ <% @items['/_data/versions.yaml'][:online].drop(1).each do |version| %>
<li>
<a href='/<%= version %><%= @item.identifier.without_ext + '.html' %>'>
<%= version %>