show displayVersion instead of version for page / component
authorDan Allen <dan@opendevise.com>
Thu, 6 Dec 2018 23:51:06 +0000 (16:51 -0700)
committerDan Allen <dan@opendevise.com>
Thu, 6 Dec 2018 23:51:06 +0000 (16:51 -0700)
src/partials/navigation-explore.hbs
src/partials/page-versions.hbs

index 7db70db..7a6d7ba 100644 (file)
@@ -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>
index 9439f83..51f6842 100644 (file)
@@ -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>