Tighter editor layout with icons.
[redakcja.git] / src / redakcja / templates / registration / head_login.html
index 1ae47fa..26ccfb5 100644 (file)
@@ -1,11 +1,13 @@
 {% load i18n %}
+{% load gravatar %}
 
 {% if user.is_authenticated %}
   <div class="nav-item dropdown">
-    <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
-      {{ user.username }}
+    <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" title="{{ user.username }}">
+      <img src="{% gravatar_url item.get_email 26 %}" alt="{{ user.username }}">
     </a>
     <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
+      <h6 class="dropdown-header">{{ user.username }}</h6>
       {% if user.is_staff %}
         <a target="_blank" class="dropdown-item" href="{% url 'admin:index' %}">{% trans "Admin" %}</a>
       {% endif %}