From 774eb44447c265c632207b5dbd791a45ac2c9fb1 Mon Sep 17 00:00:00 2001 From: Mrigank Anand <53966291+spiderxm@users.noreply.github.com> Date: Tue, 1 Jun 2021 22:12:48 +0530 Subject: [PATCH] Fixing anonymous user image is not showing up (#761) * Fixing anonymous user image is not showing up * adding dummy user image --- website/static/images/dummy-user.png | Bin 0 -> 3822 bytes website/templates/_activity.html | 9 +++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 website/static/images/dummy-user.png diff --git a/website/static/images/dummy-user.png b/website/static/images/dummy-user.png new file mode 100644 index 0000000000000000000000000000000000000000..d3987ec8e6d93d3514873c6c1fd69dcfd4aee93c GIT binary patch literal 3822 zcmV^P zdto$U3*ZEf;OtZIXc(LNzP~i`DD+Dppr{8SN|uB`3fs1A{y#V=vkHT4Wafe|vx@Hj`_F%i zAexC@VwTt>PK%r3jffJtqF8(sp9O&ZVzYB^ZB?8STf}@ZP_(IFG{qRPLEIAYqK4%u z>WhQMO0&`+8i;;ky?7>yNY35fc3U*46o^6MfJkB~hcQ<1N5{;JQ#0nKo!fSC+ofw) zu3Y=&+HW_1`NtOdrE9&_{Zlh$CjRUguNZ-_l)F_iDD@G|#Y*v5)N-5s$%>gCb2H|* zUH$FmFU#}Vm27TCf3jkUr*>M!UV0-Mi-1VsHpeSwdYs*Me9%X@O_3}DqH!uC zmgFpUOdRiV{>H8URmt0`AMY_HZoi?EwuqkMhWHA=F#f19yW{e2H-E8nz^V!XAn#@= zidZbN0jNz?%mA8YkRr}&=qsTL~ItIoSPBD_RNkF5Sv3p zToB;*V*XkT-Ah|W1t2blhjhrATY$>D)4uY8^6Rfu>W_50M$IG(X%K4 zPR_XbOIo-Jh|*R#h>@aBU>Ik1#PqOVf~f0-f*32l36$rz#WeB!jS^~|KwiZ!7{SGD zF^EVpoJG>B6?s*&Lx52ArDV z`CrJ`#9KI)?*l|no|*x)93e7bvZ8Ry^o~!8hw}`@D~hihU(;lh9Z+?&qydKEb(-_+ zwQoC~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9{X_?Tc1A~0zgwNOwp@M5Z%Nj z@d<#&XOEZiJP^;2jorrLTk4zL)V{8Y@9@rBPvx;VjPTB0VW*GVK!i_LqYk7%A%bpPLf{tJZ+0BH+{5&!@I literal 0 HcmV?d00001 diff --git a/website/templates/_activity.html b/website/templates/_activity.html index 4c2cd00a7..d19baf014 100644 --- a/website/templates/_activity.html +++ b/website/templates/_activity.html @@ -1,12 +1,17 @@ {% load gravatar %} +{% load static %}
{% if activity.user.userprofile.avatar %} {% elif activity.user.socialaccount_set.all.0.get_avatar_url %} - - {% else %} + + {% elif activity.user.email %} + {% else %} + {% endif %}