Skip to content

Commit d31bef5

Browse files
committed
Apply pre-commit fixes
1 parent 6b1f68c commit d31bef5

File tree

1 file changed

+7
-42
lines changed

1 file changed

+7
-42
lines changed

website/templates/leaderboard_global.html

+7-42
Original file line numberDiff line numberDiff line change
@@ -211,26 +211,11 @@ <h1 class="page-header">Global Leaderboard</h1>
211211
<div class=" flex justify-between items-center">
212212
<div class="flex gap-2 items-center truncate">
213213
{% 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;">
220215
{% 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;">
227217
{% 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;">
234219
{% endif %}
235220
<a href="{% url 'profile' slug=leader.username %}"
236221
class="text-lg transition-all duration-200">{{ leader.username }}</a>
@@ -256,19 +241,9 @@ <h1 class="page-header">Global Leaderboard</h1>
256241
<div class="flex justify-between items-center">
257242
<div class="flex gap-2 items-center truncate">
258243
{% 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;">
265245
{% 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;">
272247
{% endif %}
273248
<a href="{% url 'profile' slug=leader.user_profile__user__username %}"
274249
class="text-lg transition-all duration-200">{{ leader.user_profile__user__username }}</a>
@@ -297,19 +272,9 @@ <h1 class="page-header">Global Leaderboard</h1>
297272
<div class="flex justify-between items-center">
298273
<div class="flex gap-2 items-center truncate">
299274
{% 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;">
306276
{% 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;">
313278
{% endif %}
314279
<a href="{% url 'profile' slug=leader.reviews__reviewer__user__username %}"
315280
class="text-lg transition-all duration-200">

0 commit comments

Comments
 (0)