Zack Williams | ccaa38a | 2021-11-16 15:36:05 -0700 | [diff] [blame^] | 1 | <!-- |
| 2 | SPDX-FileCopyrightText: © 2020 Open Networking Foundation <support@opennetworking.org> |
| 3 | SPDX-License-Identifier: Apache-2.0 |
| 4 | --!> |
| 5 | {%- if current_version %} |
| 6 | <div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="versions"> |
| 7 | <span class="rst-current-version" data-toggle="rst-current-version"> |
| 8 | <span class="fa fa-book"> Other Versions</span> |
| 9 | v: {{ current_version.name }} |
| 10 | <span class="fa fa-caret-down"></span> |
| 11 | </span> |
| 12 | <div class="rst-other-versions"> |
| 13 | {%- if versions.tags %} |
| 14 | <dl> |
| 15 | <dt>Tags</dt> |
| 16 | {%- for item in versions.tags %} |
| 17 | <dd><a href="{{ item.url }}">{{ item.name }}</a></dd> |
| 18 | {%- endfor %} |
| 19 | </dl> |
| 20 | {%- endif %} |
| 21 | {%- if versions.branches %} |
| 22 | <dl> |
| 23 | <dt>Branches</dt> |
| 24 | {%- for item in versions.branches %} |
| 25 | <dd><a href="{{ item.url }}">{{ item.name }}</a></dd> |
| 26 | {%- endfor %} |
| 27 | </dl> |
| 28 | {%- endif %} |
| 29 | </div> |
| 30 | </div> |
| 31 | {%- endif %} |