Skip to content

Commit

Permalink
Add selectorText to version selector (#286)
Browse files Browse the repository at this point in the history
Note that this update depends on the `selector-labels` extension added
by neo4j/docs-tools#28
  • Loading branch information
recrwplay authored Dec 13, 2024
1 parent 8637cbf commit 8327481
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/partials/nav-selectors.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}{{#if (and @root.page.attributes.nav-indicate-latest (eq this.version @root.page.latest.version)) }} (Latest){{else}}{{#with this.selectorText }} {{{this}}}{{/with}}{{/if}}
</option>
{{/unless}}
{{/each}}
Expand Down

0 comments on commit 8327481

Please sign in to comment.