aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-03-09 10:34:49 +0900
committernsfisis <nsfisis@gmail.com>2024-03-09 10:34:49 +0900
commit8eaa76b2364b64ba32b10263f36404b472e10a28 (patch)
tree88bb05be6e2e8ed9113d4e6cbcb9229569847ffe
parentdfdd70a508f7540c76dd0acd966df40b910613a9 (diff)
downloadphperkaigi-2024-albatross-8eaa76b2364b64ba32b10263f36404b472e10a28.tar.gz
phperkaigi-2024-albatross-8eaa76b2364b64ba32b10263f36404b472e10a28.tar.zst
phperkaigi-2024-albatross-8eaa76b2364b64ba32b10263f36404b472e10a28.zip
fix text "no answers" during ranking is hidden
-rw-r--r--services/app/templates/answer_list.html.twig15
1 files changed, 12 insertions, 3 deletions
diff --git a/services/app/templates/answer_list.html.twig b/services/app/templates/answer_list.html.twig
index c066d3b..b43acf6 100644
--- a/services/app/templates/answer_list.html.twig
+++ b/services/app/templates/answer_list.html.twig
@@ -20,9 +20,18 @@
{% endif %}
<h2>回答一覧</h2>
{% if answers|length == 0 %}
- <p>
- まだ回答がありません
- </p>
+ {% if is_ranking_hidden %}
+ <p>
+ 回答が締め切られるまで、回答一覧は表示されません
+ </p>
+ <p>
+ 参加者の方で、ご自身の回答を確認する場合は、<a href="{{ url_for('login', {}, { to: url_for('answer_list', { qslug: quiz.slug }) }) }}">こちらからログインしてください</a>
+ </p>
+ {% else %}
+ <p>
+ まだ回答がありません
+ </p>
+ {% endif %}
{% else %}
{% if is_ranking_hidden %}
<p>