1. Ahmad Khayyat
  2. mezzanine


Gavin Wahl  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.

  • Participants
  • Parent commits 2bdacab
  • Branches default

Comments (0)

Files changed (1)

File mezzanine/core/templates/admin/includes/dropdown_menu.html

View file
  • Ignore whitespace
     {% 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();">