Skip to content

Commit

Permalink
Link to correct component version from nav
Browse files Browse the repository at this point in the history
  • Loading branch information
zbynek committed May 5, 2024
1 parent db1b8ac commit 50c6855
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions ui-bundle/partials/nav-explore.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
{{#if page.component}}
<div class="context">
<span class="title">{{page.component.title}}</span>
<span class="version">{{#if (or page.componentVersion.version (ne page.componentVersion.displayVersion 'en'))}}{{page.componentVersion.displayVersion}}{{/if}}</span>
<span class="version">{{#if (ne page.componentVersion.displayVersion 'en')}}{{page.componentVersion.displayVersion}}{{/if}}</span>
</div>
{{/if}}
<ul class="components">
{{#each site.components}}
<li class="component{{#if (eq this @root.page.component)}} is-current{{/if}}">
<div class="title"><a href="{{{relativize ./url}}}">{{{./title}}}</a></div>
<li class="component{{#if (eq 'Manual' @root.page.component.title)}} is-current{{/if}}">
<div class="title"><a href="{{{relativize '/manual/'}}}{{page.componentVersion.version}}">Manual</a></div>
</li>
<li class="component{{#if (eq 'Reference' @root.page.component.title)}} is-current{{/if}}">
<div class="title"><a href="{{{relativize '/reference/en'}}}">Reference</a></div>
</li>
{{/each}}
</ul>
</div>

0 comments on commit 50c6855

Please sign in to comment.