Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_someone here is possessed by an owl
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Laetitia de Castro
widget_someone here is possessed by an owl
Commits
4adf1242
Commit
4adf1242
authored
May 23, 2022
by
Titia de Castro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added images to announcement details
parent
a5e57b80
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
announcement_detail.html
...ncements/templates/announcements/announcement_detail.html
+9
-0
settings.cpython-310.pyc
widget/__pycache__/settings.cpython-310.pyc
+0
-0
No files found.
announcements/templates/announcements/announcement_detail.html
View file @
4adf1242
...
@@ -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 %}
...
...
widget/__pycache__/settings.cpython-310.pyc
View file @
4adf1242
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment