Commit 95856a65 authored by minseok.park's avatar minseok.park

update page-version.hbs

parent a747ce4c
Pipeline #19361 passed with stages
in 3 minutes and 2 seconds
{{#with page.versions}} {{!-- {{#with page.versions}} --}}
{{#if page.component}}
<div class="page-versions"> <div class="page-versions">
<div class="backdrop"></div> <div class="backdrop"></div>
{{#with @root.page.componentVersion}} <h2 class="title"><a href="{{{relativize ./url}}}">{{page.component.title}}</a></h2>
<h2 class="title"><a href="{{{relativize ./url}}}">{{./title}}</a></h2> <button class="version-menu-toggle" title="Show other versions of page">{{#if (or page.componentVersion.version (ne page.componentVersion.displayVersion 'default'))}}v{{page.componentVersion.displayVersion}}{{/if}}</button>
{{/with}} {{#with site.components.[0]}}
<button class="version-menu-toggle" title="Show other versions of page">v{{@root.page.componentVersion.displayVersion}}</button>
<div class="version-menu"> <div class="version-menu">
{{#each this}} {{#each ./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 (and (eq .. @root.page.component) (eq this @root.page.componentVersion))}} is-current{{/if~}}
{{~#if ./missing}} is-missing{{/if}}" href="{{{relativize ./url}}}">v{{./displayVersion}}</a> {{~#if ./missing}} is-missing{{/if}}" href="{{{relativize ./url}}}">v{{./displayVersion}}</a>
{{/each}} {{/each}}
</div> </div>
{{/with}}
</div> </div>
{{/with}} {{/if}}
{{!-- {{/with}} --}}
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