From deacd0dfc195bca41af631114804d29937337cd8 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 17 Jan 2024 02:11:31 +0900 Subject: . --- services/app/templates/answer_view.html.twig | 38 ++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 services/app/templates/answer_view.html.twig (limited to 'services/app/templates/answer_view.html.twig') diff --git a/services/app/templates/answer_view.html.twig b/services/app/templates/answer_view.html.twig new file mode 100644 index 0000000..a76e161 --- /dev/null +++ b/services/app/templates/answer_view.html.twig @@ -0,0 +1,38 @@ +{% extends '_page.html.twig' %} + +{% block content %} +

{{ quiz.title }}

+

+ {{ quiz.description }} +

+

回答 #{{ answer.answer_number }}

+

+ {{ answer.author_name }} が {{ answer.submitted_at|date('Y-m-d H:i:s', 'Asia/Tokyo') }} に投稿 +

+

コード

+

+ {{ answer.code_size }} byte +

+
{{ answer.code }}
+

実行結果

+
+ ステータス: {{ answer.execution_status.label() }} + {% if answer.execution_status.showLoadingIndicator() %} +
Loading...
+ {% endif %} +
+ {% for ex in testcase_executions %} +

テストケース {{ loop.index }}

+
+ ステータス: {{ ex.status.label() }} + {% if ex.status.showLoadingIndicator() %} +
Loading...
+ {% endif %} +
+

標準出力

+
{{ ex.stdout }}
+

標準エラー出力

+
{{ ex.stderr }}
+ {% endfor %} + +{% endblock %} -- cgit v1.2.3-70-g09d2