You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
{% macro render_status_td(rdoc, rid_key='_id', class='') %}
|
|
|
|
<td class="col--status record-status--border {{ class }} {{ model.builtin.STATUS_CODES[rdoc.status] }}">
|
|
|
|
<div class="col--status__text">
|
|
|
|
<span class="icon record-status--icon {{ model.builtin.STATUS_CODES[rdoc.status] }}"></span>
|
|
|
|
<span style="color: {{ utils.status.getScoreColor(rdoc.score|default(0)) }}">{{ rdoc.score|default(0) }}</span>
|
|
|
|
<a href="{{ url('record_detail', rid=rdoc[rid_key]) }}" class="record-status--text {{ model.builtin.STATUS_CODES[rdoc.status] }}">
|
|
|
|
{{ model.builtin.STATUS_TEXTS[rdoc.status] }}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{% if rdoc.status == STATUS.STATUS_JUDGING %}
|
|
|
|
<div class="col--status__progress-container">
|
|
|
|
<div class="col--status__progress" style="width: {{ rdoc['progress']|default(50)|int }}%"></div>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
</td>
|
|
|
|
{% endmacro %}
|