Commit 4adf1242 authored by Titia de Castro's avatar Titia de Castro

added images to announcement details

parent a5e57b80
...@@ -14,6 +14,15 @@ ...@@ -14,6 +14,15 @@
{{ announcement.announcement_body }} {{ announcement.announcement_body }}
</p> </p>
{% load static %}
{% if announcement.id == 1 %}
<img src="{% static 'announcement1.jpg' %}" alt="Leni Robredo">
{% elif announcement.id == 2 %}
<img src="{% static 'announcement2.jpg' %}" alt="Lady Gaga in her meat dress">
{% else %}
<img src="{% static 'announcement3.jpg' %}" alt="Taylor Swift handing an award to Bruno Mars">
{% endif %}
{% for reaction in announcement.reactions.all %} {% for reaction in announcement.reactions.all %}
<p>{{ reaction.reaction_name }} Reactions: {{ reaction.getTally }}</p> <p>{{ reaction.reaction_name }} Reactions: {{ reaction.getTally }}</p>
{% endfor %} {% endfor %}
......
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