Commit c6f0bfa1 authored by Rurik Serzo's avatar Rurik Serzo

Added new post button in forum

parent b6a73bb1
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
{% block content %} {% block content %}
<h1>Welcome to Widget's Forum</h1> <h1>Welcome to Widget's Forum</h1>
<h2>Forum posts:</h2> <h2>Forum posts:</h2>
<ul> <ul class="post-list">
{% for post in posts %} {% for post in posts %}
<li> <li>
<a href="/forum/{{ post.id }}/details"> <a href="/forum/{{ post.id }}/details">
...@@ -20,5 +20,5 @@ ...@@ -20,5 +20,5 @@
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>
<a href="/forum/add" class="button-style">New Forum Post</a>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -12,3 +12,13 @@ ...@@ -12,3 +12,13 @@
.post-title { .post-title {
text-align:center; text-align:center;
} }
.button-style {
border: 3px solid blue;
padding: 8px 20px;
margin-left: 30px;
}
.post-list {
margin-bottom: 50px;
}
\ 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