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

versions_list.html « partials « layouts - gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d35023e7d0299c6f794681a322771f6f6514f0c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!--
     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 %>
  <a class="dropdown-item" <%= active_dropdown(version) %> href='/<%= version %><%= @item.identifier.without_ext + '.html' %>'>
    <%= version %>
  </a>
<% end %>