aboutsummaryrefslogtreecommitdiffhomepage
path: root/services/app/templates/answer_list.html.twig
diff options
context:
space:
mode:
Diffstat (limited to 'services/app/templates/answer_list.html.twig')
-rw-r--r--services/app/templates/answer_list.html.twig7
1 files changed, 6 insertions, 1 deletions
diff --git a/services/app/templates/answer_list.html.twig b/services/app/templates/answer_list.html.twig
index 23f51ce..03ab438 100644
--- a/services/app/templates/answer_list.html.twig
+++ b/services/app/templates/answer_list.html.twig
@@ -13,13 +13,18 @@
<p>
{{ quiz.description }}
</p>
+ {% if is_open %}
+ <p>
+ <a class="btn btn-primary" href="{{ url_for('answer_new', { qslug: quiz.slug }) }}">回答する</a>
+ </p>
+ {% endif %}
<h2>回答一覧</h2>
{% if answers|length == 0 %}
<p>
まだ回答がありません
</p>
{% else %}
- <table>
+ <table class="table table-striped table-bordered">
<thead>
<tr>
<th>ランク</th>