Cloned DMOJ
This commit is contained in:
parent
f623974b58
commit
49dc9ff10c
513 changed files with 132349 additions and 39 deletions
32
templates/user/pp-row.html
Normal file
32
templates/user/pp-row.html
Normal file
|
@ -0,0 +1,32 @@
|
|||
<div class="sub-result {{ breakdown.sub_result_class }}">
|
||||
<div class="score">{{ breakdown.sub_points|floatformat(0) }} / {{ breakdown.sub_total|floatformat(0) }}</div>
|
||||
<div class="state">
|
||||
<span title="{{ breakdown.sub_long_status }}" class="status">{{ breakdown.sub_short_status }}</span>
|
||||
|
|
||||
<span class="language">{{ breakdown.sub_lang }}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="sub-info">
|
||||
<div class="name">
|
||||
<a href="{{ url('problem_detail', breakdown.problem_code) }}">{{ breakdown.problem_name }}</a>
|
||||
</div>
|
||||
<div class="time">{{ relative_time(breakdown.sub_date) }}</div>
|
||||
</div>
|
||||
|
||||
<div class="sub-pp sub-usage">
|
||||
<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) %}
|
||||
weighted <b>{{ weight }}%</b>
|
||||
{% endtrans %}
|
||||
|
||||
{% if breakdown.scaled_points < 10 %}
|
||||
({{ _('%(pp).1fpp', pp=breakdown.scaled_points) }})
|
||||
{% else %}
|
||||
({{ _('%(pp).0fpp', pp=breakdown.scaled_points) }})
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue