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

Damien Lespiau damien.lespiau at intel.com
Tue Aug 25 04:23:33 AEST 2015


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

Signed-off-by: Damien Lespiau <damien.lespiau 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 a5a16b1..6b254f7 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -52,6 +52,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
@@ -61,7 +62,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