diff options
Diffstat (limited to 'services/app/templates')
| -rw-r--r-- | services/app/templates/answer_list.html.twig | 2 | ||||
| -rw-r--r-- | services/app/templates/quiz_view.html.twig | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/services/app/templates/answer_list.html.twig b/services/app/templates/answer_list.html.twig index 818a755..0ca3318 100644 --- a/services/app/templates/answer_list.html.twig +++ b/services/app/templates/answer_list.html.twig @@ -46,7 +46,7 @@ {% endif %} </td> <td> - {% if quiz.isOpenToAnswer() and answer.author_id != current_user_id %} + {% if not quiz.isFinished() and answer.author_id != current_user_id %} #{{ answer.answer_number }} {% else %} <a href="{{ url_for('answer_view', { qslug: quiz.slug, anum: answer.answer_number }) }}">#{{ answer.answer_number }}</a> diff --git a/services/app/templates/quiz_view.html.twig b/services/app/templates/quiz_view.html.twig index 44676e2..a42520c 100644 --- a/services/app/templates/quiz_view.html.twig +++ b/services/app/templates/quiz_view.html.twig @@ -42,7 +42,7 @@ <tr> <td>{{ loop.index }}</td> <td> - {% if quiz.isOpenToAnswer() and answer.author_id != current_user_id %} + {% if not quiz.isFinished() and answer.author_id != current_user_id %} #{{ answer.answer_number }} {% else %} <a href="{{ url_for('answer_view', { qslug: quiz.slug, anum: answer.answer_number }) }}">#{{ answer.answer_number }}</a> |
