From c19c84cd11380901c3f8ea60fa0319cca8d7b7d3 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 6 Mar 2024 21:37:56 +0900 Subject: hide link to answer of other users --- services/app/templates/answer_list.html.twig | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'services/app/templates/answer_list.html.twig') diff --git a/services/app/templates/answer_list.html.twig b/services/app/templates/answer_list.html.twig index 03ab438..818a755 100644 --- a/services/app/templates/answer_list.html.twig +++ b/services/app/templates/answer_list.html.twig @@ -45,7 +45,13 @@ {{ loop.index }} {% endif %} - #{{ answer.answer_number }} + + {% if quiz.isOpenToAnswer() and answer.author_id != current_user_id %} + #{{ answer.answer_number }} + {% else %} + #{{ answer.answer_number }} + {% endif %} + {{ answer.author_name }}{% if answer.author_is_admin %} (staff){% endif %} {{ answer.code_size }} byte {{ answer.submitted_at|date('Y-m-d H:i:s', 'Asia/Tokyo') }} -- cgit v1.2.3-70-g09d2