]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
base: Don't put the logout button in the is_staff block
authorDamien Lespiau <damien.lespiau@intel.com>
Mon, 16 Mar 2015 13:30:00 +0000 (13:30 +0000)
committerStephen Finucane <stephen.finucane@intel.com>
Thu, 5 Nov 2015 03:56:25 +0000 (03:56 +0000)
Regular users didn't have their logout/profile drop down!

Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Acked-by: Stephen Finucane <stephen.finucane@intel.com>
templates/base.html

index e5dfee88a82724e4461fd8607afd3a1b56dfeb14..2e0b487fddfbee76b70ea6c3ac1b2443b1437df7 100644 (file)
@@ -51,6 +51,7 @@
      <li><a href="{% url 'patchwork.views.bundle.bundles' %}">Bundles</a></li>
 {% if user.is_staff %}
      <li><a href="{% url 'admin:index' %}">Admin</a></li>
+{% endif %}
      <li class="dropdown">
        <a href="#" class="dropdown-toggle" data-toggle="dropdown"
         ><strong>{{ user.username }}</strong>&nbsp;<span
@@ -60,7 +61,6 @@
          <li><a href="{% url 'auth_logout' %}">Logout</a></li>
        </ul>
      </li>
-{% endif %}
 {% else %}
      <li><a href="{% url 'auth_login' %}">Login</a></li>
      <li><a href="{% url 'patchwork.views.user.register' %}">Register</a></li>