From 05d1b42dc456de2e57a4b4de377a6755094ef99a Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 16 Mar 2021 21:14:05 +0100 Subject: [PATCH] Hint to the browser that the avatar should be PNG Should result in that the file picker by default only shows PNG files for selection. --- snikket_web/templates/user_profile.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snikket_web/templates/user_profile.html b/snikket_web/templates/user_profile.html index 99730d5..e7ce934 100644 --- a/snikket_web/templates/user_profile.html +++ b/snikket_web/templates/user_profile.html @@ -13,7 +13,7 @@ {{ form.avatar.label }}
{%- call avatar(user_info.address, user_info.avatar_hash ) %}{% endcall -%} - {{ form.avatar }} + {{ form.avatar(accept="image/png") }}

{% trans %}Visibility{% endtrans %}