Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
widget_jupert
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
Joseph Izon
widget_jupert
Commits
1d48dac0
Commit
1d48dac0
authored
May 22, 2022
by
Cherish Magpayo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add base, details, and index html templates to use in announcement views
parent
30c0c4a3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
0 deletions
+47
-0
base.html
...et_jupert/announcements/templates/announcements/base.html
+17
-0
details.html
...jupert/announcements/templates/announcements/details.html
+15
-0
index.html
...t_jupert/announcements/templates/announcements/index.html
+15
-0
No files found.
widget_jupert/announcements/templates/announcements/base.html
0 → 100644
View file @
1d48dac0
{% load static %}
<!DOCTYPE html>
<html
lang=
"en"
>
<head>
<meta
charset=
"UTF-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<link
rel=
"stylesheet"
type=
"text/css"
href =
{%
static
'
announcements
/
style
.
css
'
%}
>
<title>
Project Jupert
</title>
</head>
<body>
{% block content %}
{% endblock %}
</body>
</html>
\ No newline at end of file
widget_jupert/announcements/templates/announcements/details.html
0 → 100644
View file @
1d48dac0
{% extends "announcements/base.html" %}
{% block content %}
<h1>
{{ announcement.announcement_title }}
</h1>
<h3>
{{ announcement.author.first_name }} {{ announcement.author.last_name }}, {{ announcement.pub_date|date:"d/m/Y" }}
</h3>
<p
id=
"announcement_body"
>
{{ announcement.announcement_body }}
</p>
<p
id=
"reactions"
>
{% for reaction in announcement.reaction_set.all %}
{{ reaction.reaction_name|lower|capfirst }}: {{ reaction.tally }}
<br>
{% endfor %}
</p>
<img
src=
{{announcement.image.url}}
>
{% endblock %}
\ No newline at end of file
widget_jupert/announcements/templates/announcements/index.html
0 → 100644
View file @
1d48dac0
{% extends "announcements/base.html" %}
{% block content %}
<h1>
Announcement Board
</h1>
<h3>
Important announcements:
</h2>
{% if announcement_list %}
<ul>
{% for announcement in announcement_list %}
<li><a
href =
"{% url 'announcements:details' announcement.id %}"
>
<b>
{{ announcement.announcement_title }}
</b>
by {{ announcement.author.first_name }} {{ announcement.author.last_name }} dated {{ announcement.pub_date|date:"d/m/Y" }}
</a></li>
{% endfor %}
</ul>
{% else %}
<p>
No announcements are available.
</p>
{% endif %}
{% 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