Zack Williams | 16042b6 | 2020-03-29 22:03:16 -0700 | [diff] [blame] | 1 | <!-- |
Joey Armstrong | 8388b7f | 2023-01-23 11:20:04 -0500 | [diff] [blame] | 2 | SPDX-FileCopyrightText: 2020-2023 Open Networking Foundation (ONF) and the ONF Contributors |
Zack Williams | 16042b6 | 2020-03-29 22:03:16 -0700 | [diff] [blame] | 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 %} |