@@ -211,26 +211,11 @@ <h1 class="page-header">Global Leaderboard</h1>
211
211
< div class =" flex justify-between items-center ">
212
212
< div class ="flex gap-2 items-center truncate ">
213
213
{% if leader.userprofile.avatar %}
214
- < img src ="{{ leader.userprofile.avatar }} "
215
- class =" size-11 select-none profileimage "
216
- alt ="{{ leader.username }} "
217
- width ="50px "
218
- height ="50px "
219
- onerror ="this.src='{% static "images /default-avatar.png" %}'; this.onerror=null; ">
214
+ < img src ="{{ leader.userprofile.avatar }} " class =" size-11 select-none profileimage " alt ="{{ leader.username }} " width ="50px " height ="50px " onerror ="this.src='{% static "images /default-avatar.png" %}'; this.onerror=null; ">
220
215
{% elif leader.socialaccount_set.all.0.get_avatar_url %}
221
- < img src ="{{ leader.socialaccount_set.all.0.get_avatar_url }} "
222
- class =" size-11 select-none profileimage "
223
- alt ="{{ leader.username }} "
224
- width ="50px "
225
- height ="50px "
226
- onerror ="this.src='{% static "images /default-avatar.png" %}'; this.onerror=null; ">
216
+ < img src ="{{ leader.socialaccount_set.all.0.get_avatar_url }} " class =" size-11 select-none profileimage " alt ="{{ leader.username }} " width ="50px " height ="50px " onerror ="this.src='{% static "images /default-avatar.png" %}'; this.onerror=null; ">
227
217
{% else %}
228
- < img src ="{% gravatar_url leader.email 50 %} "
229
- class =" size-11 select-none profileimage "
230
- alt ="{{ leader.username }} "
231
- width ="50px "
232
- height ="50px "
233
- onerror ="this.src='{% static "images /default-avatar.png" %}'; this.onerror=null; ">
218
+ < img src ="{% gravatar_url leader.email 50 %} " class =" size-11 select-none profileimage " alt ="{{ leader.username }} " width ="50px " height ="50px " onerror ="this.src='{% static "images /default-avatar.png" %}'; this.onerror=null; ">
234
219
{% endif %}
235
220
< a href ="{% url 'profile' slug=leader.username %} "
236
221
class ="text-lg transition-all duration-200 "> {{ leader.username }}</ a >
@@ -256,19 +241,9 @@ <h1 class="page-header">Global Leaderboard</h1>
256
241
< div class ="flex justify-between items-center ">
257
242
< div class ="flex gap-2 items-center truncate ">
258
243
{% if leader.user_profile__github_url %}
259
- < img src ="https://github.com/{{ leader.user_profile__user__username }}.png "
260
- class =" size-11 select-none profileimage "
261
- alt ="{{ leader.user_profile__user__username }} "
262
- width ="50px "
263
- height ="50px "
264
- onerror ="this.src='{% static "images /default-avatar.png" %}'; this.onerror=null; ">
244
+ < img src ="https://github.com/{{ leader.user_profile__user__username }}.png " class =" size-11 select-none profileimage " alt ="{{ leader.user_profile__user__username }} " width ="50px " height ="50px " onerror ="this.src='{% static "images /default-avatar.png" %}'; this.onerror=null; ">
265
245
{% else %}
266
- < img src ="{% gravatar_url leader.user_profile__user__email 50 %} "
267
- class =" size-11 select-none profileimage "
268
- alt ="{{ leader.user_profile__user__username }} "
269
- width ="50px "
270
- height ="50px "
271
- onerror ="this.src='{% static "images /default-avatar.png" %}'; this.onerror=null; ">
246
+ < img src ="{% gravatar_url leader.user_profile__user__email 50 %} " class =" size-11 select-none profileimage " alt ="{{ leader.user_profile__user__username }} " width ="50px " height ="50px " onerror ="this.src='{% static "images /default-avatar.png" %}'; this.onerror=null; ">
272
247
{% endif %}
273
248
< a href ="{% url 'profile' slug=leader.user_profile__user__username %} "
274
249
class ="text-lg transition-all duration-200 "> {{ leader.user_profile__user__username }}</ a >
@@ -297,19 +272,9 @@ <h1 class="page-header">Global Leaderboard</h1>
297
272
< div class ="flex justify-between items-center ">
298
273
< div class ="flex gap-2 items-center truncate ">
299
274
{% if leader.reviews__reviewer__user__username %}
300
- < img src ="https://github.com/{{ leader.reviews__reviewer__user__username }}.png "
301
- class =" size-11 select-none profileimage "
302
- alt ="{{ leader.reviews__reviewer__user__username }} "
303
- width ="50px "
304
- height ="50px "
305
- onerror ="this.src='{% static "images /default-avatar.png" %}'; this.onerror=null; ">
275
+ < img src ="https://github.com/{{ leader.reviews__reviewer__user__username }}.png " class =" size-11 select-none profileimage " alt ="{{ leader.reviews__reviewer__user__username }} " width ="50px " height ="50px " onerror ="this.src='{% static "images /default-avatar.png" %}'; this.onerror=null; ">
306
276
{% else %}
307
- < img src ="{% gravatar_url leader.reviews__reviewer__user__email 50 %} "
308
- class =" size-11 select-none profileimage "
309
- alt ="{{ leader.reviews__reviewer__user__username }} "
310
- width ="50px "
311
- height ="50px "
312
- onerror ="this.src='{% static "images /default-avatar.png" %}'; this.onerror=null; ">
277
+ < img src ="{% gravatar_url leader.reviews__reviewer__user__email 50 %} " class =" size-11 select-none profileimage " alt ="{{ leader.reviews__reviewer__user__username }} " width ="50px " height ="50px " onerror ="this.src='{% static "images /default-avatar.png" %}'; this.onerror=null; ">
313
278
{% endif %}
314
279
< a href ="{% url 'profile' slug=leader.reviews__reviewer__user__username %} "
315
280
class ="text-lg transition-all duration-200 ">
0 commit comments