Skip to content

Commit

Permalink
Remove first dropdown entry (#245)
Browse files Browse the repository at this point in the history
  • Loading branch information
rsill-neo4j authored Jul 23, 2024
1 parent a446316 commit 2214871
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
8 changes: 2 additions & 6 deletions src/partials/nav-explore.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,12 @@
<span class="dropdown-label">Neo4j Version</span>

<select data-current="{{@root.page.version}}" class="version-selector dropdown-styles">
{{#with @root.page.componentVersion}}
<option value="" selected>
{{#unless (or @root.page.attributes.nav-hide-component-title (eq @root.page.attributes.theme 'cheat-sheet'))}} {{{ ./title }}} {{/unless}}{{ 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}}
>
{{ this.displayVersion }}{{#if (and @root.page.attributes.nav-indicate-latest (eq this.version @root.page.latest.version)) }} (latest){{/if}}
Expand All @@ -24,4 +20,4 @@
</select>
</div>
</div>
{{/if}}
{{/if}}
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 2214871

Please sign in to comment.