Commit 7f82c448 authored by Dan Allen's avatar Dan Allen

merge !59

resolves #66 show displayVersion instead of version for page / component
parents 0cf80b95 85bd7302
......@@ -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">
......@@ -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>
......
{{#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>
......
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