From ce00c6c9ae360055a6caeda27ce7f11f13f3d192 Mon Sep 17 00:00:00 2001 From: Neil Dewhurst Date: Wed, 11 Dec 2024 15:58:53 +0000 Subject: [PATCH 1/3] Add selectorText to version selector --- src/partials/nav-selectors.hbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/partials/nav-selectors.hbs b/src/partials/nav-selectors.hbs index 46284744..503f1a11 100644 --- a/src/partials/nav-selectors.hbs +++ b/src/partials/nav-selectors.hbs @@ -24,7 +24,7 @@ {{#if (eq this.version @root.page.version)}} selected{{/if}} {{~#if this.missing}} disabled{{/if}} > - {{#unless @root.page.attributes.selector-hide-label }}{{#with (or @root.page.attributes.selector-label 'Version') }}{{{this}}} {{/with}}{{/unless}}{{ this.displayVersion }}{{#if (and @root.page.attributes.nav-indicate-latest (eq this.version @root.page.latest.version)) }} (latest){{/if}} + {{#unless @root.page.attributes.selector-hide-label }}{{#with (or @root.page.attributes.selector-label 'Version') }}{{{this}}} {{/with}}{{/unless}}{{ this.displayVersion }}{{#with this.selectorText }} {{{this}}}{{/with}}{{#if (and @root.page.attributes.nav-indicate-latest (eq this.version @root.page.latest.version)) }} (latest){{/if}} {{/unless}} {{/each}} From 5e86310dbf2ea52848e1c9cb4f944cdbca7b246d Mon Sep 17 00:00:00 2001 From: Neil Dewhurst Date: Fri, 13 Dec 2024 16:00:54 +0000 Subject: [PATCH 2/3] Show latest or current --- src/partials/nav-selectors.hbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/partials/nav-selectors.hbs b/src/partials/nav-selectors.hbs index 503f1a11..3e4cb5a7 100644 --- a/src/partials/nav-selectors.hbs +++ b/src/partials/nav-selectors.hbs @@ -24,7 +24,7 @@ {{#if (eq this.version @root.page.version)}} selected{{/if}} {{~#if this.missing}} disabled{{/if}} > - {{#unless @root.page.attributes.selector-hide-label }}{{#with (or @root.page.attributes.selector-label 'Version') }}{{{this}}} {{/with}}{{/unless}}{{ this.displayVersion }}{{#with this.selectorText }} {{{this}}}{{/with}}{{#if (and @root.page.attributes.nav-indicate-latest (eq this.version @root.page.latest.version)) }} (latest){{/if}} + {{#unless @root.page.attributes.selector-hide-label }}{{#with (or @root.page.attributes.selector-label 'Version') }}{{{this}}} {{/with}}{{/unless}}{{ this.displayVersion }}{{#if (and @root.page.attributes.nav-indicate-latest (eq this.version @root.page.latest.version)) }} (latest){{else}}{{#with this.selectorText }} {{{this}}}{{/with}}{{/if}} {{/unless}} {{/each}} From 5d515a7d71d34fd9de84fd0598e07768f7b61519 Mon Sep 17 00:00:00 2001 From: Neil Dewhurst Date: Fri, 13 Dec 2024 16:19:04 +0000 Subject: [PATCH 3/3] capital L --- src/partials/nav-selectors.hbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/partials/nav-selectors.hbs b/src/partials/nav-selectors.hbs index 3e4cb5a7..7b7d20ef 100644 --- a/src/partials/nav-selectors.hbs +++ b/src/partials/nav-selectors.hbs @@ -24,7 +24,7 @@ {{#if (eq this.version @root.page.version)}} selected{{/if}} {{~#if this.missing}} disabled{{/if}} > - {{#unless @root.page.attributes.selector-hide-label }}{{#with (or @root.page.attributes.selector-label 'Version') }}{{{this}}} {{/with}}{{/unless}}{{ this.displayVersion }}{{#if (and @root.page.attributes.nav-indicate-latest (eq this.version @root.page.latest.version)) }} (latest){{else}}{{#with this.selectorText }} {{{this}}}{{/with}}{{/if}} + {{#unless @root.page.attributes.selector-hide-label }}{{#with (or @root.page.attributes.selector-label 'Version') }}{{{this}}} {{/with}}{{/unless}}{{ this.displayVersion }}{{#if (and @root.page.attributes.nav-indicate-latest (eq this.version @root.page.latest.version)) }} (Latest){{else}}{{#with this.selectorText }} {{{this}}}{{/with}}{{/if}} {{/unless}} {{/each}}