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
70e2b199
Commit
70e2b199
authored
May 23, 2022
by
Titia de Castro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extend base template for announcement templates
parent
5076b6af
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
42 additions
and
36 deletions
+42
-36
urls.cpython-310.pyc
announcements/__pycache__/urls.cpython-310.pyc
+0
-0
views.cpython-310.pyc
announcements/__pycache__/views.cpython-310.pyc
+0
-0
announcement_detail.html
...ncements/templates/announcements/announcement_detail.html
+19
-19
index.html
announcements/templates/index.html
+23
-17
settings.cpython-310.pyc
widget/__pycache__/settings.cpython-310.pyc
+0
-0
No files found.
announcements/__pycache__/urls.cpython-310.pyc
View file @
70e2b199
No preview for this file type
announcements/__pycache__/views.cpython-310.pyc
View file @
70e2b199
No preview for this file type
announcements/templates/announcements/announcement_detail.html
View file @
70e2b199
<!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"
>
<title>
Document
</title>
</head>
<body>
<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>
{% extends 'base.html' %}
{% load static %}
{% for reaction in announcement.reactions.all %}
<p>
{{ reaction.reaction_name }} Reactions: {{ reaction.getTally }}
</p>
{% endfor %}
</body>
</html>
\ No newline at end of file
{% block title %}Announcements{% endblock %}
{% block styles %}
<link
rel=
"stylesheet"
href=
"{% static 'css/styles.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>
{% for reaction in announcement.reactions.all %}
<p>
{{ reaction.reaction_name }} Reactions: {{ reaction.getTally }}
</p>
{% endfor %}
{% endblock %}
\ No newline at end of file
announcements/templates/index.html
View file @
70e2b199
<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"
>
<title>
Announcements
</title>
</head>
<body>
<h1>
Announcement Board
</h1>
<h2>
Important Announcements:
</h2>
<ul>
{% for announcement in announcements %}
<li><a
href=
"/announcements/{{ announcement.id }}/details"
>
{{ announcement.announcement_title }} by {{ announcement.author.first_name }} {{ announcement.author.last_name }} dated {{ announcement.pub_date|date:'d/m/Y' }}
</a></li>
{% endfor %}
</ul>
</body>
</html>
\ No newline at end of file
{% extends 'base.html' %}
{% load static %}
{% block title %}Announcements{% endblock %}
{% block styles %}
<link
rel=
"stylesheet"
href=
"{% static 'css/styles.css' %}"
>
{% endblock %}
{% block content %}
<h1>
Announcement Board
</h1>
<h2>
Important Announcements:
</h2>
<ul>
{% for announcement in announcements %}
<li>
<a
href=
"/announcements/{{ announcement.id }}/details"
>
{{ announcement.announcement_title }} by {{ announcement.author.first_name }} {{ announcement.author.last_name }}
dated {{ announcement.pub_date|date:'d/m/Y' }}
</a>
</li>
{% endfor %}
</ul>
{% endblock %}
\ No newline at end of file
widget/__pycache__/settings.cpython-310.pyc
View file @
70e2b199
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