content/static/html/helpers: remove not-at-latest check
The experiment was removed from the codebase, but checks in the
templates were not.
Change-Id: I993b96f77fba0cd4dbda97390c7bff9f8adac649
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/303709
Trust: Julie Qiu <julie@golang.org>
Trust: Jonathan Amsterdam <jba@google.com>
Run-TryBot: Julie Qiu <julie@golang.org>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Julie Qiu <julie@golang.org>
diff --git a/content/static/html/helpers/_legacy_unit_header.tmpl b/content/static/html/helpers/_legacy_unit_header.tmpl
index 86adc35..832ef13 100644
--- a/content/static/html/helpers/_legacy_unit_header.tmpl
+++ b/content/static/html/helpers/_legacy_unit_header.tmpl
@@ -83,12 +83,10 @@
data-ppath="{{.Unit.Path}}"
data-pagetype="{{.PageType}}">
<span class="DetailsHeader-span--latest">Latest</span>
- {{if (.Experiments.IsActive "not-at-latest")}}
- <span class="DetailsHeader-span--notAtLatest">
- Latest
- {{template "severity_toggletip" "This package is not in the latest version of its module."}}
- </span>
- {{end}}
+ <span class="DetailsHeader-span--notAtLatest">
+ Latest
+ {{template "severity_toggletip" "This package is not in the latest version of its module."}}
+ </span>
<a href="{{.LatestURL}}">Go to latest</a>
</div>
</span>
diff --git a/content/static/html/helpers/_unit_header.tmpl b/content/static/html/helpers/_unit_header.tmpl
index 72014c7..435168c 100644
--- a/content/static/html/helpers/_unit_header.tmpl
+++ b/content/static/html/helpers/_unit_header.tmpl
@@ -94,12 +94,10 @@
data-ppath="{{.Unit.Path}}"
data-pagetype="{{.PageType}}">
<span class="DetailsHeader-span--latest">Latest</span>
- {{if (.Experiments.IsActive "not-at-latest")}}
- <span class="DetailsHeader-span--notAtLatest">
- Latest
- {{template "severity_toggletip" "This package is not in the latest version of its module."}}
- </span>
- {{end}}
+ <span class="DetailsHeader-span--notAtLatest">
+ Latest
+ {{template "severity_toggletip" "This package is not in the latest version of its module."}}
+ </span>
<a href="{{.LatestURL}}">Go to latest</a>
</div>
</span>