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
|
|
|
{% if has_rating %}
|
|
|
|
<th class="rating-column">{{ _('Rating') }}</th>
|
|
|
|
{% endif %}
|
2020-01-21 06:35:58 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block after_rank %}
|
2023-01-27 23:11:10 +00:00
|
|
|
{% if has_rating %}
|
|
|
|
<td class="rating-column">{% if user.participation_rating %}{{ rating_number(user.participation_rating) }}{% endif %}</td>
|
|
|
|
{% endif %}
|
2022-06-19 09:15:58 +00:00
|
|
|
{% endblock %}
|
2020-10-18 18:08:48 +00:00
|
|
|
|
2022-06-19 09:15:58 +00:00
|
|
|
{% block user_footer %}
|
2024-04-13 22:02:54 +00:00
|
|
|
{% set profile = user.user %}
|
|
|
|
{% if profile.first_name %}
|
2023-01-27 23:11:10 +00:00
|
|
|
<div style="font-weight: 600; display: none" class="fullname gray">
|
2024-04-13 22:02:54 +00:00
|
|
|
{{ profile.first_name }}
|
2023-01-27 23:11:10 +00:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
2024-04-13 22:02:54 +00:00
|
|
|
{% if profile.last_name %}
|
2023-10-18 19:21:38 +00:00
|
|
|
<div class="school gray" style="display: none"><div style="font-weight: 600">
|
2024-04-13 22:02:54 +00:00
|
|
|
{{ profile.last_name }}
|
2023-10-18 19:21:38 +00:00
|
|
|
</div></div>
|
2023-01-27 23:11:10 +00:00
|
|
|
{% endif %}
|
2020-01-21 06:35:58 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
2024-04-13 22:02:54 +00:00
|
|
|
{% block user_link %}
|
|
|
|
{{ link_user(user.user, show_image=True) }}
|
|
|
|
{% endblock %}
|
|
|
|
|
2020-01-21 06:35:58 +00:00
|
|
|
{% block user_data %}
|
2023-01-27 23:11:10 +00:00
|
|
|
{% if user.participation.virtual %}
|
|
|
|
<sub class="gray">[{{user.participation.virtual}}]</sub>
|
|
|
|
{% endif %}
|
|
|
|
{% if can_edit %}
|
|
|
|
<span class="contest-participation-operation">
|
|
|
|
<form action="{{ url('contest_participation_disqualify', contest.key) }}" method="post">
|
|
|
|
{% csrf_token %}
|
|
|
|
<input type="hidden" name="participation" value="{{ user.participation.id }}">
|
|
|
|
{% if user.participation.is_disqualified %}
|
|
|
|
<a href="#" title="{{ _('Un-Disqualify') }}"
|
|
|
|
class="un-disqualify-participation"><i class="fa fa-undo fa-fw"></i></a>
|
|
|
|
{% else %}
|
|
|
|
<a href="#" title="{{ _('Disqualify') }}"
|
|
|
|
class="disqualify-participation"><i class="fa fa-trash fa-fw"></i></a>
|
|
|
|
{% endif %}
|
|
|
|
</form>
|
|
|
|
{% if perms.judge.change_contestparticipation %}
|
|
|
|
<a href="{{ url('admin:judge_contestparticipation_change', user.participation.id) }}"
|
|
|
|
title="{{ _('Admin') }}" class="edit-participation"><i class="fa fa-cog fa-fw"></i></a>
|
|
|
|
{% endif %}
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
2020-01-21 06:35:58 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block before_point_head %}
|
2023-01-27 23:11:10 +00:00
|
|
|
<th class="full-name" style="display:none;">{{ _('Fullname') }}</th>
|
|
|
|
<th style="display:none;">{{ _('School') }}</th>
|
|
|
|
{% for problem in problems %}
|
|
|
|
<th class="points header problem-score-col" title="{{ problem.problem.name }}"><a href="{{ url('problem_detail', problem.problem.code) }}">
|
|
|
|
{{- contest.get_label_for_problem(loop.index0) }}
|
|
|
|
<div class="point-denominator">{{ problem.points }}</div>
|
|
|
|
<div class="problem-code" style="display: none;">{{ problem.problem.code }}</div>
|
|
|
|
</a></th>
|
|
|
|
{% endfor %}
|
2020-01-21 06:35:58 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block row_extra %}
|
2023-01-27 23:11:10 +00:00
|
|
|
class="{{ 'disqualified' if user.participation.is_disqualified }} {{'highlight' if user.username == request.user.username}}"
|
2020-01-21 06:35:58 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block before_point %}
|
2023-01-27 23:11:10 +00:00
|
|
|
{% for cell in user.problem_cells %}
|
|
|
|
{{ cell }}
|
|
|
|
{% endfor %}
|
2020-01-21 06:35:58 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block point %}
|
2023-01-27 23:11:10 +00:00
|
|
|
{{ user.result_cell }}
|
2020-01-21 06:35:58 +00:00
|
|
|
{% endblock %}
|