From 7c1f02d6ae5bd92af8fbbfb862ece52b004bb184 Mon Sep 17 00:00:00 2001 From: Nik Everett Date: Mon, 9 Dec 2019 12:19:54 -0500 Subject: [PATCH] Drop "out of date" from version drop down I added "out of date" to the version drop down if you are on a page for a non-live verison of the docs but it turns out we're adding a heading to the docs that says exactly that so this is duplicate information and it can be confusing. --- integtest/spec/all_books_spec.rb | 2 +- lib/ES/Book.pm | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/integtest/spec/all_books_spec.rb b/integtest/spec/all_books_spec.rb index b665934c11cba..7a641bc7c41a2 100644 --- a/integtest/spec/all_books_spec.rb +++ b/integtest/spec/all_books_spec.rb @@ -656,7 +656,7 @@ def self.setup_example(repo, lang, hash) context 'the live versions drop down' do it 'contains the deprecated branch' do expect(body).to include(<<~HTML.strip) - + HTML end end diff --git a/lib/ES/Book.pm b/lib/ES/Book.pm index 73d91f2351352..576eb67f0692f 100644 --- a/lib/ES/Book.pm +++ b/lib/ES/Book.pm @@ -343,7 +343,6 @@ sub _update_title_and_version_drop_downs { $title .= ' selected' if $branch eq $b; $title .= '>' . $self->branch_title($b); $title .= ' (current)' if $self->current eq $b; - $title .= ' (out of date)' unless $live; $title .= ''; } $title .= '' if $removed_any;