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:
authorSarah German <sgerman@gitlab.com>2022-10-01 08:28:02 +0300
committerDavid O'Regan <doregan@gitlab.com>2022-10-01 08:28:02 +0300
commit1284380196bca81375fecb71400e09798a5c0578 (patch)
treec1e8993599202ba97f638dd618f723826d624faa /layouts
parente6dfcbc18d36c2ecc976460a68b0ab24f9225481 (diff)
Remove unused Version-related functions
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/versions_list.html21
1 files changed, 0 insertions, 21 deletions
diff --git a/layouts/partials/versions_list.html b/layouts/partials/versions_list.html
deleted file mode 100644
index dd563e01..00000000
--- a/layouts/partials/versions_list.html
+++ /dev/null
@@ -1,21 +0,0 @@
-<!--
- If we are on the archives page, the link here is hardcoded to always
- point to `/archives/`. If you visit https://docs.gitlab.com/archives/
- and select a version from the dropdown, that version's archives page
- will be shown. We want to always show the latest archives page as it
- contains all current versions and offline archives.
--->
-<% if archives? %>
- <a class="dropdown-item" href='/archives/'>
- <%= version %>
- </a>
-<% else %>
- <!-- Use canonical URLs. If the URL contains 'index', remove it. -->
- <% if @item.identifier.without_ext.split('/').last == 'index' %>
- <a class="dropdown-item" <%= active_dropdown(version) %> href='/<%= version %><%= @item.identifier.without_ext.gsub('index', '') %>'>
- <% else %>
- <a class="dropdown-item" <%= active_dropdown(version) %> href='/<%= version %><%= @item.identifier.without_ext + '.html' %>'>
- <% end %>
- <%= version %>
- </a>
-<% end %>