| |
@@ -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>
|
| |
Use
display_version
where it's needed to handle unversioned component that come with antora 3.0.0.See: https://pagure.io/fedora-docs/template/pull-request/20#comment-164408