28b457bc62
This commit enables template debug option to detect errors in template rendering in unit tests. Several errors in template rendering are found by enabling the debug option and they are fixed in this commit. Related-Bug: #1809983 Change-Id: I1a2d19f2eae62e16f02d3386abd65527bac4e7a0
18 lines
541 B
HTML
18 lines
541 B
HTML
{% load i18n %}
|
|
|
|
<ul class="dropdown-menu">
|
|
<li class="dropdown-header">{% trans "Projects:" %}</li>
|
|
{% for project in projects %}
|
|
<li>
|
|
<a class="{% if project.enabled and project.id == project_id %} dropdown-selected{% endif %}"
|
|
href="{% url 'switch_tenants' project.id %}{% if page_url %}?next={{ page_url }}{% endif %}"
|
|
target="_self">
|
|
<span class="fa fa-check dropdown-selected-icon"></span>
|
|
<span class="dropdown-title">
|
|
{{ project.name }}
|
|
</span>
|
|
</a>
|
|
</li>
|
|
{% endfor %}
|
|
</ul>
|