xref: /DragonOS/docs/_templates/versions.html (revision d031d46fd9e9a62e8e975dba76e3bdef027f63b6)
1{%- if current_version %}
2<div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="versions">
3  <span class="rst-current-version" data-toggle="rst-current-version">
4    <span class="fa fa-book"> Other Versions</span>
5    v: {{ current_version.name }}
6    <span class="fa fa-caret-down"></span>
7  </span>
8  <div class="rst-other-versions">
9    {%- if versions.tags %}
10    <dl>
11      <dt>Tags</dt>
12      {%- for item in versions.tags %}
13      <dd><a href="{{ item.url }}">{{ item.name }}</a></dd>
14      {%- endfor %}
15    </dl>
16    {%- endif %}
17    {%- if versions.branches %}
18    <dl>
19      <dt>Branches</dt>
20      {%- for item in versions.branches %}
21      <dd><a href="{{ item.url }}">{{ item.name }}</a></dd>
22      {%- endfor %}
23    </dl>
24    {%- endif %}
25  </div>
26</div>
27{%- endif %}
28