diff options
author | Andrew Godwin | 2022-11-17 08:21:42 -0700 |
---|---|---|
committer | Andrew Godwin | 2022-11-17 12:21:44 -0700 |
commit | f5eafb0ca0af3ed064202abbe99bfbeef8bbb74d (patch) | |
tree | d01453e94f371956e7e989351b51e6ed6eb42541 /templates/base.html | |
parent | 7f8e792402b66dbb4a721be4f44306d528931b86 (diff) | |
download | takahe-f5eafb0ca0af3ed064202abbe99bfbeef8bbb74d.tar.gz takahe-f5eafb0ca0af3ed064202abbe99bfbeef8bbb74d.tar.bz2 takahe-f5eafb0ca0af3ed064202abbe99bfbeef8bbb74d.zip |
Add image/icon upload
Diffstat (limited to 'templates/base.html')
-rw-r--r-- | templates/base.html | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/templates/base.html b/templates/base.html index bce5e1b..616d5b6 100644 --- a/templates/base.html +++ b/templates/base.html @@ -44,11 +44,14 @@ {% if not request.identity %} No Identity <img src="{% static "img/unknown-icon-128.png" %}" title="No identity selected"> + {% elif request.identity.icon %} + {{ request.identity.username }} + <img src="{{ request.identity.icon.url }}" title="{{ request.identity.handle }}"> {% elif request.identity.icon_uri %} - {{ request.identity.username }} <small>@{{ request.identity.domain_id }}</small> + {{ request.identity.username }} <img src="{{ request.identity.icon_uri }}" title="{{ request.identity.handle }}"> {% else %} - {{ request.identity.username }} <small>@{{ request.identity.domain_id }}</small> + {{ request.identity.username }} <img src="{% static "img/unknown-icon-128.png" %}" title="{{ request.identity.handle }}"> {% endif %} </a> |