Skip to content

Commit

Permalink
Update nav-selectors.hbs
Browse files Browse the repository at this point in the history
  • Loading branch information
rsill-neo4j authored Jul 22, 2024
1 parent 192f593 commit 1474dfd
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/partials/nav-selectors.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,12 @@
<span class="dropdown-label">{{#with (or page.attributes.cheatsheet-product 'Product')}}{{this}}{{/with}} Version</span>

<select data-current="{{@root.page.version}}" class="version-selector dropdown-styles">
{{#with @root.page.componentVersion}}
<option value="" selected>
Version {{ this.displayVersion }}{{#if (and @root.page.attributes.nav-indicate-latest (eq @root.page.version @root.page.latest.version)) }} (latest){{/if}}
</option>
{{/with}}
{{#each page.versions}}
{{#unless (or this.prerelease (and (eq this.version @root.page.version) (eq @root.page.attributes.theme 'cheat-sheet') ))}}
<option
data-version="{{this.displayVersion}}"
value="{{{relativize this.url}}}"
{{#if (eq this.version @root.page.version)}} selected{{/if}}
{{~#if this.missing}} disabled{{/if}}
>
Version {{ this.displayVersion }}{{#if (and @root.page.attributes.nav-indicate-latest (eq this.version @root.page.latest.version)) }} (latest){{/if}}
Expand Down

0 comments on commit 1474dfd

Please sign in to comment.