diff mbox

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

Message ID 1443708774-26996-44-git-send-email-damien.lespiau@intel.com
State Accepted
Headers show

Commit Message

Damien Lespiau Oct. 1, 2015, 2:12 p.m. UTC
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 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

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>&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>