Fix display of EXTERNAL_LINKS
<li><a href="{% url 'config-urls' %}">Export URL</a></li>
</ul>
</li>
- {% for title, link in EXTERNAL_LINKS.iteritems %}
+ {% if EXTERNAL_LINKS %}
+ <li class="dropdown">
+ <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Links <span class="caret"></span></a>
+ <ul class="dropdown-menu">
+ {% for title, link in EXTERNAL_LINKS.items %}
<li><a href="{{ link }}">{{ title }}</a></li>
{% endfor %}
+ </ul>
+ </li>
+ {% endif %}
{% if user.is_superuser %}
<li><a href="{% url 'admin:index' %}">Admin</a></li>
{% endif %}
