2020-01-21 06:35:58 +00:00
|
|
|
{% extends "user/base-users.html" %}
|
|
|
|
|
|
|
|
{% block title_ruler %}{% endblock %}
|
|
|
|
|
|
|
|
{% block title_row %}
|
|
|
|
{% set title = contest.name %}
|
|
|
|
{% include "contest/contest-tabs.html" %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block users_media %}
|
2022-06-01 05:28:56 +00:00
|
|
|
<link href="//cdn.jsdelivr.net/npm/featherlight@1.7.14/release/featherlight.min.css" type="text/css" rel="stylesheet" />
|
2022-06-01 20:18:52 +00:00
|
|
|
{% include "contest/ranking-css.html" %}
|
2020-01-21 06:35:58 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block users_js_media %}
|
2021-05-24 20:00:36 +00:00
|
|
|
{% if can_edit %}
|
2020-01-21 06:35:58 +00:00
|
|
|
<script type="text/javascript">
|
|
|
|
$(function () {
|
|
|
|
$('a.disqualify-participation').click(function (e) {
|
|
|
|
e.preventDefault();
|
|
|
|
if (e.ctrlKey || e.metaKey || confirm("{{ _('Are you sure you want to disqualify this participation?') }}"))
|
|
|
|
$(this).closest('form').submit();
|
|
|
|
})
|
|
|
|
$('a.un-disqualify-participation').click(function (e) {
|
|
|
|
e.preventDefault();
|
|
|
|
if (e.ctrlKey || e.metaKey || confirm("{{ _('Are you sure you want to un-disqualify this participation?') }}"))
|
|
|
|
$(this).closest('form').submit();
|
|
|
|
})
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
{% endif %}
|
|
|
|
{% if perms.judge.change_contestparticipation %}
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(function () {
|
|
|
|
$('td.user').find('a.user-name').click(function (e) {
|
|
|
|
var data = $(this).siblings('.edit-participation');
|
|
|
|
if (e.altKey && data.length) {
|
|
|
|
window.open(data.attr('data-link'), '_blank');
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
{% endif %}
|
|
|
|
{% if not contest.ended %}
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(function () {
|
|
|
|
window.install_tooltips = function () {
|
|
|
|
$('td.user').find('a.user-name').each(function () {
|
|
|
|
var link = $(this);
|
|
|
|
link.mouseenter(function (e) {
|
|
|
|
var start_time = link.siblings('.start-time').text();
|
|
|
|
link.addClass('tooltipped tooltipped-e').attr('aria-label', start_time);
|
|
|
|
}).mouseleave(function (e) {
|
|
|
|
link.removeClass('tooltipped tooltipped-e').removeAttr('aria-label');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
};
|
|
|
|
|
|
|
|
install_tooltips();
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
{% endif %}
|
|
|
|
{% include "contest/media-js.html" %}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block users_table %}
|
|
|
|
<div style="margin-bottom: 0.5em">
|
|
|
|
{% if tab == 'participation' %}
|
2021-05-24 20:00:36 +00:00
|
|
|
{% if contest.can_see_full_scoreboard(request.user) %}
|
2020-01-21 06:35:58 +00:00
|
|
|
<input id="search-contest" type="text" placeholder="{{ _('View user participation') }}">
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
<input id="show-organizations-checkbox" type="checkbox" style="vertical-align: bottom">
|
2020-06-24 01:46:33 +00:00
|
|
|
<label for="show-organizations-checkbox" style="vertical-align: bottom; margin-right: 1em;">{{ _('Show organizations') }}</label>
|
|
|
|
|
2020-10-18 18:08:48 +00:00
|
|
|
<input id="show-fullnames-checkbox" type="checkbox" style="vertical-align: bottom">
|
|
|
|
|
2020-10-26 20:46:42 +00:00
|
|
|
<label for="show-fullnames-checkbox" style="vertical-align: bottom; margin-right: 1em;">{{ _('Show full name') }}</label>
|
2020-06-24 01:46:33 +00:00
|
|
|
{% if request.user.is_authenticated %}
|
|
|
|
<input id="show-friends-checkbox" type="checkbox" style="vertical-align: bottom;">
|
2020-10-26 20:46:42 +00:00
|
|
|
<label for="show-friends-checkbox" style="vertical-align: bottom; margin-right: 1em;">{{ _('Show friends only') }}</label>
|
2020-06-24 01:46:33 +00:00
|
|
|
{% endif %}
|
2021-10-24 22:57:06 +00:00
|
|
|
<input id="show-total-score-checkbox" type="checkbox" style="vertical-align: bottom; ">
|
|
|
|
<label for="show-total-score-checkbox" style="vertical-align: bottom; margin-right: 1em;">{{ _('Total score only') }}</label>
|
|
|
|
<input id="show-virtual-checkbox" type="checkbox" style="vertical-align: bottom;">
|
2021-11-07 23:59:12 +00:00
|
|
|
<label id="show-virtual-label" for="show-virtual-checkbox" style="vertical-align: bottom; margin-right: 1em;">{{ _('Show virtual participation') }}</label>
|
|
|
|
<img src="{{static('loading.gif')}}" style="height: 1em; display:none;" id="loading-gif"></img>
|
2020-01-21 06:35:58 +00:00
|
|
|
</div>
|
|
|
|
{% include "contest/ranking-table.html" %}
|
|
|
|
{% endblock %}
|