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
bf3f54b7
Commit
bf3f54b7
authored
May 23, 2022
by
Titia de Castro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rearrange announcement details order of elements
parent
f432467c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
announcement_detail.html
...ncements/templates/announcements/announcement_detail.html
+10
-9
No files found.
announcements/templates/announcements/announcement_detail.html
View file @
bf3f54b7
...
...
@@ -4,25 +4,26 @@
{% block title %}Announcements{% endblock %}
{% block styles %}
<link
rel=
"stylesheet"
href=
"{% static '
css/style
s.css' %}"
>
<link
rel=
"stylesheet"
href=
"{% static '
announcement
s.css' %}"
>
{% endblock %}
{% block content %}
<h1>
{{ announcement.announcement_title }}
</h1>
<h2>
by {{ announcement.author.first_name }} {{ announcement.author.last_name }} dated {{ announcement.pub_date|date:'d/m/Y' }}
</h2>
<p>
{{ announcement.announcement_body }}
</p>
<h1
class=
"announcement-heading"
>
{{ announcement.announcement_title }}
</h1>
<h2
class=
"announcement-subtitle"
>
by {{ announcement.author.first_name }} {{ announcement.author.last_name }} dated {{ announcement.pub_date|date:'d/m/Y' }}
</h2>
{% load static %}
{% if announcement.id == 1 %}
<img
src=
"{% static 'announcement1.jpg' %}"
alt=
"Leni Robredo"
>
<img
src=
"{% static 'announcement1.jpg' %}"
alt=
"Leni Robredo"
>
{% elif announcement.id == 2 %}
<img
src=
"{% static 'announcement2.jpg' %}"
alt=
"Lady Gaga in her meat dress"
>
<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"
>
<img
src=
"{% static 'announcement3.jpg' %}"
alt=
"Taylor Swift handing an award to Bruno Mars"
>
{% endif %}
<p>
{{ announcement.announcement_body }}
</p>
{% for reaction in announcement.reactions.all %}
<p>
{{ reaction.reaction_name }} Reactions: {{ reaction.getTally }}
</p>
{% endfor %}
...
...
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