Added block heading

parent a36f8b27
...@@ -3,15 +3,61 @@ ...@@ -3,15 +3,61 @@
{% block page-title %} Widget's Announcement Board {% endblock %} {% block page-title %} Widget's Announcement Board {% endblock %}
{% block heading %} <h1> Welcome to Widget's Announcement Board! </h1> {% endblock %} {% block heading %}
<!DOCTYPE html>
<html>
<head>
<style>
ul {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #333;
}
li {
float: left;
}
li a {
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}
li a:hover {
background-color: #111;
}
</style>
</head>
<body>
<ul>
<li><a class="active" href="/dashboard/">Dashboard</a></li>
<li><a href="/forum/">Forum</a></li>
</ul>
</body>
</html>
<header>
<link href='https://fonts.googleapis.com/css?family=Dancing Script' rel='stylesheet'>
<div class="overlay">
<h> Welcome to Widget's Announcement Board! </h>
</div>
</header>
{% endblock %}
{% block content %} {% block content %}
<p> Announcements:<br><br> <h3>Announcements: </h3>
{% for a in announcements_list %} <p>{% for a in announcements_list %}
<a href="{% url 'announcement_board:announcement-details' a.pk %}"> <a href="{% url 'announcement_board:announcement-details' a.pk %}">
{{a.title}} by {{ a.author.first_name }} {{ a.author.last_name }} {{a.title}} by {{ a.author.first_name }} {{ a.author.last_name }}
</a><br> </a><br>
{% endfor %} {% endfor %}
<br>
</p> </p>
{% endblock %} {% endblock %}
...@@ -21,9 +67,4 @@ ...@@ -21,9 +67,4 @@
<button class="btn add">New Announcement</button> <button class="btn add">New Announcement</button>
</a> </a>
</p> </p>
<p>
<a href="/dashboard/" class="link">Dashboard</a><br>
<a href="/forum/" class="link">Forum</a><br>
</p>
{% endblock %} {% endblock %}
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