Added the html files for the announcement app

parent 9af29825
{% extends "announcements/base.html" %}
{% block content %}
<h1>Announcement Board</h1>
<body>
<p>Important Announcements:</p>
<ol style="list-style-type:circle">
{% for announcement in all_announcements %}
<p>
<a href = {% url 'announcements:details' announcement.id %}>
{{announcement.announcement_title}} by
{{announcement.author.first_name}}
{{announcement.author.last_name}}
dated {{announcement.pub_date|date:"d/m/Y"}}</a>
</p>
{% endfor %}
</ol>
</body>
{% endblock %}
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" href="style.css">
<title>{% block title %}{% endblock %}</title>
{% block styles %}{% endblock %}
</head>
<body>
<div id="content">
{% block content %}{% endblock %}
</div>
{% block scripts %}{% endblock %}
</body>
</html>
{% extends "announcements/base.html" %}
{% block content %}
<h1>
{{announcement_details.announcement_title}}
</h1>
<h2>
by
{{announcement_details.author.first_name}}
{{announcement_details.author.last_name}}
dated {{announcement_details.pub_date|date:"d/m/Y"}}
</h2>
<p>
{{announcement_details.announcement_body}}
</p>
<li>Like: {{like}}</li>
<li>Love: {{love}}</li>
<li>Angry: {{angry}}</li>
<img src=http://images.gmanews.tv/webpics/2021/11/rastaman_2021_11_07_16_56_21.png>
{% endblock %}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment