<div class="rst-versions" data-toggle="rst-versions" role="note" aria-label="versions">
    <span class="rst-current-version" data-toggle="rst-current-version">
      <span class="fa fa-book"> {{ header }}</span>
      v: {{ current_version }}
      <span class="fa fa-caret-down"></span>
    </span>
    <div class="rst-other-versions">
      {% if branches %}
      <dl>
        <dt>Ветки</dt>
        {% for slug, url in branches.items() %}
          <dd><a href="{{ url }}">{{ slug }}</a></dd>
        {% endfor %}
      </dl>
      {% endif %}
      {% if tags %}
      <dl>
        <dt>Тэги</dt>
        {% for slug, url in tags.items() %}
          <dd><a href="{{ url }}">{{ slug }}</a></dd>
        {% endfor %}
      </dl>
      {% endif %}
      {% if downloads %}
      <dl>
        <dt>Загрузки</dt>
        {% for slug, url in downloads.items() %}
          <dd><a href="{{ url }}">{{ slug }}</a></dd>
        {% endfor %}
      </dl>
      {% endif %}
      {% if repository_link %}
      <dl>
        <dt>Репозиторий</dt>
          <dd><a href="{{ repository_link }}">Посмотреть</a></dd>
      </dl>
      {% endif %}
   </div>
  </div>