blob: 300f2f5d73546b4b705ca94123e5d2a2216166cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
{% extends '_page.html.twig' %}
{% block content %}
<h2>{{ quiz.title }}</h2>
<p>
{{ quiz.description }}
</p>
<h2>回答 #{{ answer.answer_number }}</h2>
<p>
{{ answer.author_name }} が {{ answer.submitted_at|date('Y-m-d H:i:s', 'Asia/Tokyo') }} に投稿
</p>
<h2>コード</h2>
<p>
{{ answer.code_size }} byte
</p>
<pre><code class="hljs language-php">{{ answer.code }}</code></pre>
<h2>実行結果</h2>
<div class="js-phper-token">
{% if phper_token %}
バーディー! {{ phper_token }}
{% endif %}
</div>
<div>
ステータス: <span class="js-aggregated-execution-status" data-answer-id="{{ answer.answer_id }}">{{ answer.execution_status.label() }}</span>
{% if answer.execution_status.showLoadingIndicator() %}
<div class="js-aggregated-execution-status-loading-indicator spinner-border text-primary spinner-border-sm" role="status"><span class="visually-hidden">Loading...</span></div>
{% endif %}
</div>
<table>
{% for ex in testcase_executions %}
<tr>
<td>テストケース {{ loop.index }}</td>
<td>
ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="{{ ex.testcase_execution_id }}">{{ ex.status.label() }}</span>
{% if ex.status.showLoadingIndicator() %}
<span class="js-testcase-execution-status-loading-indicator spinner-border text-primary spinner-border-sm" role="status" data-testcase-execution-id="{{ ex.testcase_execution_id }}"><span class="visually-hidden">Loading...</span></span>
{% endif %}
</td>
</tr>
{% endfor %}
</table>
<script type="module" src="{{ base_path() }}/assets/loading.js"></script>
{% endblock %}
|