Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_Alipins
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
Angelico Ruiz T. Teaño
widget_Alipins
Commits
211a8543
Commit
211a8543
authored
May 09, 2022
by
Carlo Joseph Echon
🐟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added templates for Announcements
parent
a59f4b66
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
0 deletions
+34
-0
detail.html
...alipins/announcements/templates/announcements/detail.html
+17
-0
index.html
..._alipins/announcements/templates/announcements/index.html
+17
-0
No files found.
widget_alipins/announcements/templates/announcements/detail.html
0 → 100644
View file @
211a8543
{% extends 'base.html' %}
{% block title %}{{announcement.announcement_title}}{% endblock %}
{% block content %}
<h1>
{{announcement.announcement_title}}
</h1>
<div>
<h2>
by {{announcement.author.first_name}} {{announcement.author.last_name}}, {{announcement.pub_date}}
</h2>
<p>
Description: {{announcement.announcement_body}}
<br><br>
Reaction:
<br>
{% for reaction in reaction_list %}
{% if reaction.announcement.id == announcement.id %}
{{reaction.reaction_name}}: {{reaction.tally}}
<br>
{% endif %}
{% endfor %}
</p>
</div>
{% endblock %}
\ No newline at end of file
widget_alipins/announcements/templates/announcements/index.html
0 → 100644
View file @
211a8543
{% extends 'base.html' %}
{% block title %}Announcements{% endblock %}
{% block content %}
<h1>
Announcement Board
</h1>
<div>
<h2>
Important Announcements:
</h2>
{% if announcement_list %}
<ul>
{% for announcement in announcement_list %}
<li><a
href=
"{% url 'announcements:details' announcement.id %}"
>
{{announcement.announcement_title}}
</a>
by {{announcement.author.first_name}} {{announcement.author.last_name}} dated {{announcement.pub_date}}
</li>
{% endfor %}
</ul>
{% else %}
<p>
There are no announcements.
</p>
{% endif %}
</div>
{% endblock %}
\ No newline at end of file
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