Commit 8c532d57 authored by Michael Lopez's avatar Michael Lopez

minor edit in announcements html by removing 's' in both 'announcements' and 'reactions'

parent b563bca8
...@@ -3,12 +3,12 @@ ...@@ -3,12 +3,12 @@
{% for announcement in announcements %} {% for reaction in reactions %} {% for announcement in announcements %} {% for reaction in reactions %}
<p> <p>
{{ announcements.title }} by {{ announcements.author }} published {{ {{ announcement.title }} by {{ announcement.author }} published
announcements.pub_datetime }}<br /> {{announcement.pub_datetime }}<br />
{{ announcements.body }}<br /> {{ announcement.body }}<br />
Like: {{ reactions.tally }}<br /> Like: {{ reaction.tally }}<br />
Love: {{ reactions.tally }}<br /> Love: {{ reaction.tally }}<br />
Angry: {{ reactions.tally }} Angry: {{ reaction.tally }}
</p> </p>
{% endfor %} {% endfor %} {% endfor %} {% endfor %}
...@@ -5,5 +5,5 @@ def pageview(request): ...@@ -5,5 +5,5 @@ def pageview(request):
announcements = Announcement.objects.all() announcements = Announcement.objects.all()
reactions = Reaction.objects.all() reactions = Reaction.objects.all()
return render(request, 'announcements/announcement_board.html', return render(request, 'announcements/announcements.html',
{'announcements': announcements, 'reactions': reactions}) {'announcements': announcements, 'reactions': reactions})
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