Skip to content

Commit f8261a8

Browse files
committed
Modify IBM content logic
1 parent cc26f46 commit f8261a8

File tree

1 file changed

+17
-22
lines changed

1 file changed

+17
-22
lines changed

src/current/releases/index.md

Lines changed: 17 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -249,26 +249,6 @@ Refer to [Major release types](#major-releases) before installing or upgrading f
249249
To learn what's new in this release, refer to [Feature Highlights]({% link releases/{{ v.major_version }}.md %}#feature-highlights).
250250
{% endunless %}
251251

252-
{% comment %} Add IBM tab to non-testing releases since v25.3 {% endcomment %}
253-
{% if v.major_version == 'v23.1' or
254-
v.major_version == 'v23.2' or
255-
v.major_version == 'v23.3' or
256-
v.major_version == 'v23.4' or
257-
v.major_version == 'v24.1' or
258-
v.major_version == 'v24.2' or
259-
v.major_version == 'v24.3' or
260-
v.major_version == 'v24.4' or
261-
v.major_version == 'v25.1' or
262-
v.major_version == 'v25.2' or
263-
released == false %}
264-
<div id="os-tabs" class="filters filters-big clearfix">
265-
<button id="linux" class="filter-button" data-scope="linux">Linux</button>
266-
<button id="mac" class="filter-button" data-scope="mac">Mac</button>
267-
<button id="windows" class="filter-button" data-scope="windows">Windows</button>
268-
<button id="docker" class="filter-button" data-scope="docker">Docker</button>
269-
<button id="source" class="filter-button" data-scope="source">Source</button>
270-
</div>
271-
{% else %}
272252
<div id="os-tabs" class="filters filters-big clearfix">
273253
<button id="linux" class="filter-button" data-scope="linux">Linux</button>
274254
<button id="mac" class="filter-button" data-scope="mac">Mac</button>
@@ -277,7 +257,6 @@ To learn what's new in this release, refer to [Feature Highlights]({% link relea
277257
<button id="ibm" class="filter-button" data-scope="ibm">IBM</button>
278258
<button id="source" class="filter-button" data-scope="source">Source</button>
279259
</div>
280-
{% endif %}
281260

282261
{% for s in sections %} {% comment %} For each major version, iterate through the sections. {% endcomment %}
283262

@@ -664,7 +643,23 @@ macOS downloads are **experimental**. Experimental downloads are not yet qualifi
664643
</section>
665644

666645
<section class="filter-content" markdown="1" data-scope="ibm">
667-
<p>Downloads and documentation for production releases of {{ site.data.products.ibm-cockroachdb }} {{ r.release_name }} are available through <a href="https://www.ibm.com/software/passportadvantage/pao_customer.html" >IBM Passport Advantage</a></p>
646+
{% comment %} Adjust contents of IBM tab based on release number and production vs testing status {% endcomment %}
647+
{% if v.major_version == 'v23.1' or
648+
v.major_version == 'v23.2' or
649+
v.major_version == 'v23.3' or
650+
v.major_version == 'v23.4' or
651+
v.major_version == 'v24.1' or
652+
v.major_version == 'v24.2' or
653+
v.major_version == 'v24.3' or
654+
v.major_version == 'v24.4' or
655+
v.major_version == 'v25.1' or
656+
v.major_version == 'v25.2' %}
657+
<p>{{ site.data.products.ibm-cockroachdb }} is <b>unavailable</b> for {{ v.major_version }}. This deployment is available for production releases of CockroachDB v25.3 and later.</p>
658+
{% elsif s != "Production" %}
659+
<p>{{ site.data.products.ibm-cockroachdb }} is <b>unavailable</b> for testing releases.</p>
660+
{% else %}
661+
<p>Downloads and documentation for production releases of {{ site.data.products.ibm-cockroachdb }} {{ v.major_version }} are available through <a href="https://www.ibm.com/software/passportadvantage/pao_customer.html" >IBM Passport Advantage</a>.</p>
662+
{% endif %}
668663
</section>
669664

670665
<section class="filter-content" markdown="1" data-scope="source">

0 commit comments

Comments
 (0)