summaryrefslogtreecommitdiffstats
path: root/src/partials/navigation-explore.hbs
blob: 9b15841ff5e405d906ee38b8619ffb7ef983343f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<div class="navigation-explore" data-panel="explore">
  <div class="current">
    <span class="title">{{page.component.title}}</span>
    <span class="version">{{page.version}}</span>
  </div>
  <ul class="components">
    {{#each site.components}}
    <li class="component{{#if (eq this @root.page.component)}} is-current{{/if}}">
      <span class="title">{{{./title}}}</span>
      <ul class="versions">
        {{#each ./versions}}
        <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>
        </li>
        {{/each}}
      </ul>
    </li>
    {{/each}}
  </ul>
</div>