Commit 85bd7302 authored by Dan Allen's avatar Dan Allen

show displayVersion instead of version for page / component

parent 0cf80b95
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
{{#if page.component}} {{#if page.component}}
<div class="context"> <div class="context">
<span class="title">{{page.component.title}}</span> <span class="title">{{page.component.title}}</span>
<span class="version">{{page.version}}</span> <span class="version">{{page.componentVersion.displayVersion}}</span>
</div> </div>
{{/if}} {{/if}}
<ul class="components"> <ul class="components">
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<li class="version <li class="version
{{~#if (and (eq ../this @root.page.component) (eq this @root.page.componentVersion))}} is-current{{/if~}} {{~#if (and (eq ../this @root.page.component) (eq this @root.page.componentVersion))}} is-current{{/if~}}
{{~#if (eq this ../latestVersion)}} is-latest{{/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> </li>
{{/each}} {{/each}}
</ul> </ul>
......
{{#if page.versions}} {{#if page.versions}}
<div class="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"> <div class="versions-menu">
{{#each page.versions}} {{#each page.versions}}
<a class="version <a class="version
{{~#if (eq ./version @root.page.version)}} is-current{{/if~}} {{~#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}} {{/each}}
</div> </div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment