Skip to content

Commit

Permalink
show displayVersion instead of version for page / component
Browse files Browse the repository at this point in the history
  • Loading branch information
mojavelinux committed Dec 6, 2018
1 parent 0cf80b9 commit 85bd730
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/partials/navigation-explore.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{{#if page.component}}
<div class="context">
<span class="title">{{page.component.title}}</span>
<span class="version">{{page.version}}</span>
<span class="version">{{page.componentVersion.displayVersion}}</span>
</div>
{{/if}}
<ul class="components">
Expand All @@ -14,7 +14,7 @@
<li class="version
{{~#if (and (eq ../this @root.page.component) (eq this @root.page.componentVersion))}} is-current{{/if~}}
{{~#if (eq this ../latestVersion)}} is-latest{{/if}}">
<a href="{{{relativize @root.page.url ./url}}}">{{./version}}</a>
<a href="{{{relativize @root.page.url ./url}}}">{{./displayVersion}}</a>
</li>
{{/each}}
</ul>
Expand Down
4 changes: 2 additions & 2 deletions src/partials/page-versions.hbs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{{#if page.versions}}
<div class="page-versions">
<button class="versions-menu-toggle" title="Show other versions of page">{{page.version}}</button>
<button class="versions-menu-toggle" title="Show other versions of page">{{page.componentVersion.displayVersion}}</button>
<div class="versions-menu">
{{#each page.versions}}
<a class="version
{{~#if (eq ./version @root.page.version)}} is-current{{/if~}}
{{~#if ./missing}} is-missing{{/if}}" href="{{{relativize @root.page.url ./url}}}">{{./version}}</a>
{{~#if ./missing}} is-missing{{/if}}" href="{{{relativize @root.page.url ./url}}}">{{./displayVersion}}</a>
{{/each}}
</div>
</div>
Expand Down

0 comments on commit 85bd730

Please sign in to comment.