diff options
author | Sarah German <sgerman@gitlab.com> | 2022-10-01 08:28:02 +0300 |
---|---|---|
committer | David O'Regan <doregan@gitlab.com> | 2022-10-01 08:28:02 +0300 |
commit | 1284380196bca81375fecb71400e09798a5c0578 (patch) | |
tree | c1e8993599202ba97f638dd618f723826d624faa /layouts | |
parent | e6dfcbc18d36c2ecc976460a68b0ab24f9225481 (diff) |
Remove unused Version-related functions
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/versions_list.html | 21 |
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 %> |