Fix ranking csv file
This commit is contained in:
parent
d060259396
commit
f3fef31e8d
2 changed files with 8 additions and 4 deletions
|
@ -10,7 +10,7 @@
|
||||||
|
|
||||||
{% block after_rank %}
|
{% block after_rank %}
|
||||||
{% if has_rating %}
|
{% if has_rating %}
|
||||||
<td>{% if user.participation_rating %}{{ rating_number(user.participation_rating) }}{% endif %}</td>
|
<td class="rating-column">{% if user.participation_rating %}{{ rating_number(user.participation_rating) }}{% endif %}</td>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
@ -57,6 +57,7 @@
|
||||||
<th class="points header problem-score-col" title="{{ problem.problem.name }}"><a href="{{ url('problem_detail', problem.problem.code) }}">
|
<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) }}
|
{{- contest.get_label_for_problem(loop.index0) }}
|
||||||
<div class="point-denominator">{{ problem.points }}</div>
|
<div class="point-denominator">{{ problem.points }}</div>
|
||||||
|
<div class="problem-code" style="display: none;">{{ problem.problem.code }}</div>
|
||||||
</a></th>
|
</a></th>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -88,9 +88,9 @@
|
||||||
return;
|
return;
|
||||||
} else if ($col.hasClass('username')) {
|
} else if ($col.hasClass('username')) {
|
||||||
header.push(clean_text($col.text()));
|
header.push(clean_text($col.text()));
|
||||||
header.push("Name");
|
header.push("Full name");
|
||||||
} else if ($col.hasClass('problem-score-col')) {
|
} else if ($col.hasClass('problem-score-col')) {
|
||||||
header.push($col.attr("title"));
|
header.push(clean_text($col.find('.problem-code').tex()));
|
||||||
} else {
|
} else {
|
||||||
header.push(clean_text($col.text()));
|
header.push(clean_text($col.text()));
|
||||||
}
|
}
|
||||||
|
@ -153,7 +153,10 @@
|
||||||
<input id="show-virtual-checkbox" type="checkbox" style="vertical-align: bottom;">
|
<input id="show-virtual-checkbox" type="checkbox" style="vertical-align: bottom;">
|
||||||
<label id="show-virtual-label" for="show-virtual-checkbox" style="vertical-align: bottom; margin-right: 1em;">{{ _('Show virtual participation') }}</label>
|
<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>
|
<img src="{{static('loading.gif')}}" style="height: 1em; display:none;" id="loading-gif"></img>
|
||||||
<a href="#" onclick="download_ranking_as_csv()" style="float: right;">{{ _('Download as CSV') }}</a>
|
<a href="#" onclick="download_ranking_as_csv()" style="float: right;">
|
||||||
|
<i class="fa fa-download" aria-hidden="true"></i>
|
||||||
|
{{ _('Download as CSV') }}
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{% include "contest/ranking-table.html" %}
|
{% include "contest/ranking-table.html" %}
|
||||||
{% endblock %}
|
{% endblock %}
|
Loading…
Reference in a new issue