horizon/openstack_dashboard/templates/header/_header_sections.html
Radomir Dopieralski 03eaf9cd89 Avoid malformed HTML warning from jquery-migrate
The header template we are serving through ajax is starting with
a newline, which is forbidden in XHTML, and jquery complains about
this.

We need this change to upgrade jquery later.

Change-Id: If0b926b0dcf4c465c4d8ceff1e17ee9a3df1a94b
2020-11-30 15:36:04 +01:00

27 lines
944 B
HTML

{% load i18n %}<li id="primary-extensible-header" class="dropdown extensible-header">
{% for header in header_sections%}
{% if forloop.first %}
<a id="{{ header.0 }}" class="extensible-header-section"> {% autoescape off %}{{ header.1 }}{% endautoescape %} </a>
{% endif %}
{% endfor %}
</li>
{% if header_sections|length > 1 %}
<li class="dropdown header-overflow">
<a data-toggle="dropdown" href="#" class="dropdown-toggle" role="button" aria-expanded="false">
<span>{% trans "More" %}</span>
<span class="fa fa-caret-down"></span>
</a>
<ul id="header-list" class="dropdown-menu dropdown-menu-right selection-menu">
{% for header in header_sections%}
{% if not forloop.first %}
<li>
<a id="{{ header.0 }}" class="extensible-header-section"> {% autoescape off %}{{ header.1 }}{% endautoescape %} </a>
</li>
{% endif %}
{% endfor %}
</ul>
</li>
{% endif %}