Show profile image on the image viewer (#520)

Fixes #519
pull/524/head
TAKAHASHI Shuuji 2023-02-24 19:54:58 +09:00 zatwierdzone przez GitHub
rodzic 6fb9a5ea96
commit 2b56b33e38
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
2 zmienionych plików z 9 dodań i 1 usunięć

Wyświetl plik

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

Wyświetl plik

@ -21,7 +21,14 @@
<img src="{{ identity.local_image_url.relative }}" class="banner">
{% 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 %}