sprint/templates/rating.html
Egor Matveev 9a20711820 fix
2021-11-20 15:24:37 +03:00

37 lines
1.8 KiB
HTML

{% extends 'base_main.html' %}
{% block main %}
<h4>Рейтинг</h4>
<table class="table">
<thead>
<tr>
<th scope="col" style="text-align: center; vertical-align: middle; width: 70px;">#</th>
<th scope="col" style="vertical-align: middle;">Пользователь</th>
<th scope="col" style="vertical-align: middle;">Дата регистрации</th>
<th scope="col" style="text-align: center; vertical-align: middle;">Рейтинг</th>
</tr>
</thead>
<tbody>
{% for u in users %}
<tr {% if user == u %}style="background-color: #0000FF1E;"{% endif %}>
<td style="text-align: center; vertical-align: middle; width: 70px;">
{{ u.userinfo.place }}
</td>
<td style="vertical-align: middle; width: 800px;">
<img src="{{ u.userinfo.profile_pic_url }}" width="50px" height="50px" style="border-radius: 50%; margin-right: 10px;">
{% if u.userinfo.has_favourite_language %}
<img src="{{ u.userinfo.favourite_language.logo_url }}" width="18px" height="18px" style="margin-top: 40px; margin-left: -30px;">
{% endif %}
<a href="/account?username={{ u.username }}">{{ u.username }}</a>
</td>
<td style="vertical-align: middle;">
{{ u.date_joined.date }}
</td>
<td style="text-align: center; vertical-align: middle;">
{{ u.userinfo.rating }}
</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}