Skip to content

Commit 8327481

Browse files
authored
Add selectorText to version selector (#286)
Note that this update depends on the `selector-labels` extension added by neo4j/docs-tools#28
1 parent 8637cbf commit 8327481

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/partials/nav-selectors.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
{{#if (eq this.version @root.page.version)}} selected{{/if}}
2525
{{~#if this.missing}} disabled{{/if}}
2626
>
27-
{{#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}}
27+
{{#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}}
2828
</option>
2929
{{/unless}}
3030
{{/each}}

0 commit comments

Comments
 (0)