2020-01-21 06:35:58 +00:00
{% extends "user/base-users-table.html" %}
2020-06-24 01:46:33 +00:00
{% set friends = request.profile.get_friends() if request.user.is_authenticated else {} %}
2020-01-21 06:35:58 +00:00
{% block after_rank_head %}
{% if has_rating %}
< th > {{ _('Rating') }}< / th >
{% endif %}
< th class = "organization-column" > {{ _('Organization') }}< / th >
2020-12-30 02:29:50 +00:00
< th class = "fullname-column" style = "display: none;" > {{ _('Full Name') }}< / th >
2020-01-21 06:35:58 +00:00
{% endblock %}
{% block after_rank %}
{% if has_rating %}
< td > {% if user.participation_rating %}{{ rating_number(user.participation_rating) }}{% endif %}< / td >
{% endif %}
< td class = "organization-column" >
{% if user.organization %}
< span class = "organization" > < a href = "{{ user.organization.get_absolute_url() }}" >
{{- user.organization.short_name -}}
< / a > < / span >
{% endif %}
< / td >
2020-10-18 18:08:48 +00:00
< td class = "fullname-column" style = "display: none;" >
{% if user.user.first_name %}
< span class = "fullname" >
{{ user.user.first_name }}
< / span >
{% endif %}
< / td >
2020-01-21 06:35:58 +00:00
{% endblock %}
{% block user_data %}
2021-05-24 20:00:36 +00:00
{% if can_edit %}
2020-01-21 06:35:58 +00:00
< 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 %}
{% endblock %}
{% block before_point_head %}
{% for problem in problems %}
2020-10-26 20:46:42 +00:00
< th class = "points header problem-score-col" > < a href = "{{ url('contest_ranked_submissions', contest.key, problem.problem.code) }}" >
2021-05-24 20:00:36 +00:00
{{- contest.get_label_for_problem(loop.index0) }}
2020-01-21 06:35:58 +00:00
< div class = "point-denominator" > {{ problem.points }}< / div >
< / a > < / th >
{% endfor %}
{% endblock %}
{% block row_extra %}
2020-06-24 01:46:33 +00:00
class="{{ 'disqualified' if user.participation.is_disqualified }} {{ 'friend' if user.username in friends }} {{'highlight' if user.username == request.user.username}}"
2020-01-21 06:35:58 +00:00
{% endblock %}
{% block before_point %}
{% for cell in user.problem_cells %}
{{ cell }}
{% endfor %}
{% endblock %}
{% block point %}
{{ user.result_cell }}
{% endblock %}