Skip to content

Instantly share code, notes, and snippets.

@abhisuri97
Created December 2, 2017 21:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abhisuri97/1ddc8468496dd8dd71cff62a9c1028a6 to your computer and use it in GitHub Desktop.
Save abhisuri97/1ddc8468496dd8dd71cff62a9c1028a6 to your computer and use it in GitHub Desktop.
clubs
<tbody>
{% for a in club.answers | sort(attribute='id') %}
<td>{{ a.answer }}</td>
<td>{{ a.rating }}</td>
<td>{{ a.question.content }}</td>
{% if current_user.is_admin() %}
<td onclick="window.location.href = '{{ url_for('question.delete_answer', answer_id=a.id) }}';">
<a>Delete Answer</a></td> {% endif %}
</tr>
{% endfor %}
</tbody>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment