registration implemented

This commit is contained in:
Egor Matveev
2021-08-29 21:43:34 +03:00
parent f72801d6f5
commit 1307c16ec1
125 changed files with 2158 additions and 4631 deletions

View File

@@ -1,45 +1,19 @@
{% for solution in solutions %}
<tr>
<th scope="row">
<a href="/solution?id={{ solution.id }}">{{ solution.id }}</a>
</th>
<td>
{{ solution.time_sent }}
</td>
<td>
{% if can_edit or task.show_details %}
<!-- Button trigger modal -->
<button type="button" class="btn btn-link" data-toggle="modal" data-target="#resultModalLong" onclick="showData('{{ solution.id }}')">
{{ solution.result }}
</button>
<div id="details_{{ solution.id }}" hidden>{% autoescape off %}{{ solution.details }}{% endautoescape %}</div>
{% if can_edit %}
<div id="tests_{{ solution.id }}" hidden>{{ solution.task.tests_text }}</div>
<div id="log_{{ solution.id }}" hidden>{% autoescape off %}{{ solution.log_text }}{% endautoescape %}</div>
{% endif %}
{% else %}{% if task.show_result %}
{{ solution.result }}
{% else %}
Accepted
{% endif %}
{% endif %}
</td>
<td>
{% if task.show_result or can_edit %}
{{ solution.mark_property }}
{% else %}
{% if solution.mark == null %}
Checking
{% else %}
Checked
{% endif %}
{% endif %}
</td>
<td>
<pre>
{{ solution.comment_property }}
</pre>
</td>
</tr>
<tr>
<td>
<b><a href="">{{ solution.id }}</a></b>
</td>
<td>
{{ solution.time_sent }}
</td>
<td>
<img src="{{ solution.language.logo.url }}" width="30px" height="30px">
{{ solution.language }}
</td>
<td>
<h4>
<span class="badge badge-{% if solution.result == in_queue_status %}secondary{% else %}{% if solution.result == ok_status %}success{% else %}{% if solution.result == testing_status %}info{% else %}danger{% endif %}{% endif %}{% endif %}">{% if solution.result == testing_status %}<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="circle-notch" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" style="width: 20px;" class="svg-inline--fa fa-circle-notch fa-w-16 fa-spin fa-lg"><path fill="currentColor" d="M288 39.056v16.659c0 10.804 7.281 20.159 17.686 23.066C383.204 100.434 440 171.518 440 256c0 101.689-82.295 184-184 184-101.689 0-184-82.295-184-184 0-84.47 56.786-155.564 134.312-177.219C216.719 75.874 224 66.517 224 55.712V39.064c0-15.709-14.834-27.153-30.046-23.234C86.603 43.482 7.394 141.206 8.003 257.332c.72 137.052 111.477 246.956 248.531 246.667C393.255 503.711 504 392.788 504 256c0-115.633-79.14-212.779-186.211-240.236C302.678 11.889 288 23.456 288 39.056z" class=""></path></svg> {% endif %}{{ solution.result }}</span>
</h4>
</td>
</tr>
{% endfor %}