Show profile image on the image viewer (#520)

Fixes #519
This commit is contained in:
TAKAHASHI Shuuji 2023-02-24 19:54:58 +09:00 committed by GitHub
parent 6fb9a5ea96
commit 2b56b33e38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View file

@ -1187,6 +1187,7 @@ h1.identity .icon {
height: 80px; height: 80px;
float: left; float: left;
margin: 0 20px 0 0; margin: 0 20px 0 0;
cursor: pointer;
} }
h1.identity .emoji { h1.identity .emoji {

View file

@ -21,7 +21,14 @@
<img src="{{ identity.local_image_url.relative }}" class="banner"> <img src="{{ identity.local_image_url.relative }}" class="banner">
{% endif %} {% endif %}
<img src="{{ identity.local_icon_url.relative }}" class="icon"> <span
_="on click halt the event then call imageviewer.show(me)"
>
<img src="{{ identity.local_icon_url.relative }}" class="icon"
data-original-url="{{ identity.local_icon_url.relative }}"
alt="Profile image for {{ identity.name }}"
>
</span>
{% if request.identity %}{% include "identity/_view_menu.html" %}{% endif %} {% if request.identity %}{% include "identity/_view_menu.html" %}{% endif %}