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
Show 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>
{% extends 'base.html' %}
<html
lang=
"en"
>
{% load static %}
<head>
<meta
charset=
"UTF-8"
>
{% block title %}Announcements{% endblock %}
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
{% block styles %}
<title>
Document
</title>
<link
rel=
"stylesheet"
href=
"{% static 'css/styles.css' %}"
>
</head>
{% endblock %}
<body>
<h1>
{{ announcement.announcement_title }}
</h1>
{% block content %}
<h2>
by {{ announcement.author.first_name }} {{ announcement.author.last_name }} dated {{ announcement.pub_date|date:'d/m/Y' }}
</h2>
<h1>
{{ announcement.announcement_title }}
</h1>
<p>
<h2>
by {{ announcement.author.first_name }} {{ announcement.author.last_name }} dated {{ announcement.pub_date|date:'d/m/Y' }}
</h2>
<p>
{{ announcement.announcement_body }}
{{ announcement.announcement_body }}
</p>
</p>
{% 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 %}
</body>
{% endblock %}
</html>
\ No newline at end of file
\ No newline at end of file
announcements/templates/index.html
View file @
70e2b199
<html
lang=
"en"
>
{% extends 'base.html' %}
<head>
{% load static %}
<meta
charset=
"UTF-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
{% block title %}Announcements{% endblock %}
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<title>
Announcements
</title>
{% block styles %}
</head>
<link
rel=
"stylesheet"
href=
"{% static 'css/styles.css' %}"
>
<body>
{% endblock %}
<h1>
Announcement Board
</h1>
<h2>
Important Announcements:
</h2>
{% block content %}
<ul>
<h1>
Announcement Board
</h1>
<h2>
Important Announcements:
</h2>
<ul>
{% for announcement in announcements %}
{% 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>
<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 %}
{% endfor %}
</ul>
</ul>
</body>
{% endblock %}
</html>
\ No newline at end of file
\ 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