Anonymous committed 9a558a4

Don't show site selection form when there's only one site

If there's only a single site, there's no need to show this form,
because it can't do anything.

Comments (0)

Files changed (1)


     {% endfor %}
-{% if dropdown_menu_sites %}
+{% if dropdown_menu_sites and dropdown_menu_sites|length > 1 %}
 <form action="{% url "set_site" %}">
 <input type="hidden" name="next" value="{{ request.path }}">
 <select name="site_id" onchange="this.form.submit();">