NDOJ/templates/user/users-table.html

50 lines
1.6 KiB
HTML
Raw Normal View History

2020-01-21 06:35:58 +00:00
{% extends "user/base-users-table.html" %}
{% block after_rank_head %}
2023-01-27 23:11:10 +00:00
<th></th>
2020-01-21 06:35:58 +00:00
{% endblock %}
{% block after_rank %}
2023-01-27 23:11:10 +00:00
<td><img style="border: 2px solid lightblue; max-width: none; border-radius: 50%" src="{{ gravatar(user, 45) }}" height="45px" width="45px"></td>
2021-12-27 10:18:04 +00:00
{% endblock %}
2022-11-09 20:41:08 +00:00
{% block user_footer %}
2023-01-27 23:11:10 +00:00
<span style="margin-left: 0.5em">{% if user.rating %}{{ rating_number(user) }}{% endif %}</span>
2023-10-11 00:37:36 +00:00
<div class="gray" style="font-weight: 600; margin-top: 0.2em">{{ user.first_name or ''}}</div>
2020-01-21 06:35:58 +00:00
{% endblock %}
{% block after_point_head %}
2023-01-27 23:11:10 +00:00
<th class="problems">
{% if sort_links %}<a href="{{ sort_links.problem_count }}">{% endif %}
{{ _('Problems') }}
{%- if sort_links %}{{ sort_order.problem_count }}</a>{% endif %}
</th>
<th class="about-column">{{ _('About') }}</th>
2020-01-21 06:35:58 +00:00
{% endblock %}
2022-11-09 20:41:08 +00:00
{% block username_head_extra %}
2023-01-27 23:11:10 +00:00
<span style="margin-left: 0.5em" class="header rank">
{% if sort_links %}<a href="{{ sort_links.rating }}">{% endif %}
<span class="rate-group">
<svg class="rate-box" viewBox="0 0 16 16">
<circle cx="8" cy="8" r="7" stroke="white"></circle>
<path clip-path="url(#rating-clip)" d="M0 16v-4.8h16 0v16z" fill="white"></path>
</svg>
2022-11-09 20:41:08 +00:00
</span>
2023-01-27 23:11:10 +00:00
{%- if sort_links %}{{ sort_order.rating }}</a>{% endif %}
</span>
2022-11-09 20:41:08 +00:00
{% endblock %}
2020-01-21 06:35:58 +00:00
{% block after_point %}
2023-01-27 23:11:10 +00:00
<td class="user-problem-count">{{ user.problem_count }}</td>
<td>
<div class="about-td">
2023-10-11 00:37:36 +00:00
{% cache 86400 'user_about' user.id MATH_ENGINE %}
{% if user.about %}
2023-01-27 23:11:10 +00:00
{{ user.about|markdown(lazy_load=True)|reference|str|safe }}
2023-10-11 00:37:36 +00:00
{% endif %}
{% endcache %}
2023-01-27 23:11:10 +00:00
</div>
</td>
2020-01-21 06:35:58 +00:00
{% endblock %}