NDOJ/templates/user/pp-row.html

31 lines
1.1 KiB
HTML
Raw Normal View History

2024-02-12 19:43:07 +00:00
<div class="sub-details">
<div class="sub-info">
<div class="sub-problem">
<a href="{{ url('problem_detail', breakdown.problem_code) }}">{{ breakdown.problem_name }}</a>
</div>
2023-01-27 23:11:10 +00:00
</div>
2024-02-12 19:43:07 +00:00
<div class="sub-result">
<div class="state {{ breakdown.sub_result_class }}">
<span title="{{ breakdown.sub_long_status }}" class="status">{{ breakdown.sub_short_status }}</span>
</div>
<div class="score">{{ breakdown.sub_points|floatformat(0) }} / {{ breakdown.sub_total|floatformat(0) }}</div>
<div class="language">{{ breakdown.sub_lang }}</div>
2023-01-27 23:11:10 +00:00
</div>
2020-01-21 06:35:58 +00:00
</div>
<div class="sub-pp sub-usage">
2023-01-27 23:11:10 +00:00
<div class="pp">
<a href="{{ url('submission_status', breakdown.sub_id) }}">{{ breakdown.points|floatformat(0) }}pp</a>
</div>
<div class="pp-weighted">
{% trans weight=breakdown.weight|floatformat(0) %}
2024-10-03 01:27:49 +00:00
<b>{{ weight }}%</b>
2023-01-27 23:11:10 +00:00
{% endtrans %}
2020-01-21 06:35:58 +00:00
2023-01-27 23:11:10 +00:00
{% if breakdown.scaled_points < 10 %}
({{ _('%(pp).1fpp', pp=breakdown.scaled_points) }})
{% else %}
({{ _('%(pp).0fpp', pp=breakdown.scaled_points) }})
{% endif %}
</div>
2020-01-21 06:35:58 +00:00
</div>