blob: 1ec88abeaecf8f189e9f6a7538550838ddba4831 (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
|
{% extends '_page.html.twig' %}
{% block content %}
<nav>
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="{{ url_for('quiz_list') }}">問題一覧</a></li>
<li class="breadcrumb-item"><a href="{{ url_for('quiz_view', { qslug: quiz.slug }) }}">{{ quiz.title }}</a></li>
<li class="breadcrumb-item"><a href="{{ url_for('answer_list', { qslug: quiz.slug }) }}">回答一覧</a></li>
<li class="breadcrumb-item active">#{{ answer.answer_number }}</li>
</ol>
</nav>
<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 %}
<div class="alert alert-success">
バーディー! {{ phper_token }}
</div>
{% endif %}
</div>
<div class="mt-3">
ステータス: <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>
<div class="mt-3">
{% for ex in testcase_executions %}
<h3>テストケース {{ loop.index }}</h3>
<div>
ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="{{ ex.testcase_execution_id }}">{{ ex.status.label() }}</span>
{% if ex.status.showLoadingIndicator() %}
<div 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></div>
{% endif %}
</div>
<h4>標準出力</h4>
<pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="{{ ex.testcase_execution_id }}">{{ ex.stdout }}</code></pre>
<h4>標準エラー出力</h4>
<pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="{{ ex.testcase_execution_id }}">{{ ex.stderr }}</code></pre>
{% endfor %}
</div>
<script type="module" src="{{ base_path() }}/assets/loading.js"></script>
{% endblock %}
|