Commit efae50f5 authored by Agu Syquia's avatar Agu Syquia

Updated announcement-details.html

Added a for loop to list the reaction name and tallies for a particular announcement
parent d3ef095c
...@@ -10,8 +10,12 @@ ...@@ -10,8 +10,12 @@
{{ object.pub_datetime|date:"m/d/Y" }} {{ object.pub_datetime|time:"H:i A" }}<br><br> {{ object.pub_datetime|date:"m/d/Y" }} {{ object.pub_datetime|time:"H:i A" }}<br><br>
{{ object.body }}<br><br> {{ object.body }}<br><br>
Like:<br>
Love:<br> {% for reaction in reactions %}
Angry:<br><br> {% if reaction.announcement.title == object.title %}
{{ reaction.name}}: {{ reaction.tally }}<br>
{% endif %}
{% endfor %}
<button type="button" onclick="window.location.href='/announcements/{{announcement.pk}}/edit'">Edit Announcement</button> <button type="button" onclick="window.location.href='/announcements/{{announcement.pk}}/edit'">Edit Announcement</button>
{% endblock %} {% endblock %}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment