diff options
Diffstat (limited to 'templates/base.html')
-rw-r--r-- | templates/base.html | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/templates/base.html b/templates/base.html index af2887f..2ff0f15 100644 --- a/templates/base.html +++ b/templates/base.html @@ -26,10 +26,12 @@ <li> {% if user.is_authenticated %} <a href="/identity/select/"> - {% if user.icon_uri %} - <img src="{{ user.icon_uri }}" width="32"> + {% if not request.identity %} + <img src="{% static "img/unknown-icon-128.png" %}" width="32" title="No identity selected"> + {% elif request.identity.icon_uri %} + <img src="{{ request.identity.icon_uri }}" width="32" title="{{ request.identity.handle }}"> {% else %} - <img src="{% static "img/unknown-icon-128.png" %}" width="32"> + <img src="{% static "img/unknown-icon-128.png" %}" width="32" title="{{ request.identity.handle }}"> {% endif %} </a> {% else %} |