From 3100340e7e59e3b0f61667dff35c0a56b67f83da Mon Sep 17 00:00:00 2001 From: nsfisis Date: Tue, 5 Mar 2024 23:38:00 +0900 Subject: update site design --- services/app/assets/loading.js | 2 +- services/app/src/App.php | 1 + services/app/templates/_page.html.twig | 10 +++---- services/app/templates/answer_list.html.twig | 7 ++++- services/app/templates/answer_view.html.twig | 42 ++++++++++++++++++---------- services/app/templates/quiz_list.html.twig | 12 ++++---- services/app/templates/quiz_view.html.twig | 8 +++--- 7 files changed, 51 insertions(+), 31 deletions(-) (limited to 'services') diff --git a/services/app/assets/loading.js b/services/app/assets/loading.js index 986fa43..4c75692 100644 --- a/services/app/assets/loading.js +++ b/services/app/assets/loading.js @@ -24,7 +24,7 @@ document.addEventListener('DOMContentLoaded', () => { .then(response => response.json()) .then(({ aggregated_status, testcase_executions, phper_token }) => { if (phper_token) { - phperTokenElem.textContent = `バーディー! ${phper_token}`; + phperTokenElem.innerHTML = `
バーディー! ${phper_token}
`; } for (const ex of testcase_executions) { diff --git a/services/app/src/App.php b/services/app/src/App.php index 9502976..ac8ca14 100644 --- a/services/app/src/App.php +++ b/services/app/src/App.php @@ -296,6 +296,7 @@ final class App 'quiz' => $quiz, 'answers' => $answers, 'is_ranking_hidden' => $quiz->isRankingHidden(), + 'is_open' => $quiz->isOpenToAnswer(), ]); } diff --git a/services/app/templates/_page.html.twig b/services/app/templates/_page.html.twig index 700027d..1aeca36 100644 --- a/services/app/templates/_page.html.twig +++ b/services/app/templates/_page.html.twig @@ -10,15 +10,15 @@
-
-

{{ page_title }}

+
+

{{ page_title }}

{% block content %}{% endblock %}
-