Add lazy loading img and fix friend ranking
This commit is contained in:
parent
4a2bc46206
commit
86815fb460
10 changed files with 11 additions and 11 deletions
|
@ -1,7 +1,7 @@
|
|||
<span class="{{ profile.css_class }} {{'user-with-img' if show_image}}">
|
||||
{% if show_image %}
|
||||
<span class="user-img">
|
||||
<img src="{{gravatar(profile)}}">
|
||||
<img loading="lazy" src="{{gravatar(profile)}}">
|
||||
</span>
|
||||
{% endif %}
|
||||
<a href="{{ url('user_page', profile.username) }}">
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
{% endblock %}
|
||||
|
||||
{% block after_rank %}
|
||||
<td><img style="border: 2px solid lightblue; max-width: none;" class="user-img" src="{{ gravatar(user, 45) }}" height="45px" width="45px"></td>
|
||||
<td><img loading="lazy" style="border: 2px solid lightblue; max-width: none;" class="user-img" src="{{ gravatar(user, 45) }}" height="45px" width="45px"></td>
|
||||
{% endblock %}
|
||||
|
||||
{% block user_footer %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue