[PATCH 43/49] base: Don't put the logout button in the is_staff block

Damien Lespiau damien.lespiau at intel.com
Fri Oct 2 00:12:48 AEST 2015


Regular users didn't have their logout/profile drop down!

Signed-off-by: Damien Lespiau <damien.lespiau at intel.com>
Acked-by: Stephen Finucane <stephen.finucane at intel.com>
---
 templates/base.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/base.html b/templates/base.html
index e5dfee8..2e0b487 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -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> <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>
-- 
2.1.0



More information about the Patchwork mailing list