fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some modernizations.
[redakcja.git]
/
src
/
redakcja
/
templates
/
registration
/
head_login.html
diff --git
a/src/redakcja/templates/registration/head_login.html
b/src/redakcja/templates/registration/head_login.html
index
1ae47fa
..
ccbfd85
100644
(file)
--- a/
src/redakcja/templates/registration/head_login.html
+++ b/
src/redakcja/templates/registration/head_login.html
@@
-1,11
+1,13
@@
{% load i18n %}
{% load i18n %}
+{% load gravatar %}
{% if user.is_authenticated %}
<div class="nav-item dropdown">
{% 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 user.email 26 %}" alt="{{ user.username }}">
</a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
</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 %}
{% if user.is_staff %}
<a target="_blank" class="dropdown-item" href="{% url 'admin:index' %}">{% trans "Admin" %}</a>
{% endif %}
@@
-15,6
+17,6
@@
{% else %}
{% url "cas_ng_login" as login_url %}
{% if login_url != request.path %}
{% else %}
{% url "cas_ng_login" as login_url %}
{% if login_url != request.path %}
- <a class="nav-item nav-link" href='{{ login_url }}'>{% trans "Log In" %}</a>
+ <a
id="login"
class="nav-item nav-link" href='{{ login_url }}'>{% trans "Log In" %}</a>
{% endif %}
{% endif %}
{% endif %}
{% endif %}