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