Add news posts
You know. For basic information. Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
41
board/templates/board/news_list.html
Normal file
41
board/templates/board/news_list.html
Normal file
@@ -0,0 +1,41 @@
|
||||
{% extends "board/base.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block title %}
|
||||
News
|
||||
{% endblock title %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="row">
|
||||
<div class="column"> </div>
|
||||
<div class="column"><h1>News</h1></div>
|
||||
<div class="column"> </div>
|
||||
</div>
|
||||
|
||||
<hr />
|
||||
|
||||
<div class="row">
|
||||
<div class="column"> </div>
|
||||
<div class="column">
|
||||
{% for post in object_list %}
|
||||
<div class="row">
|
||||
<section>
|
||||
<h3>{{post.title}}</h3>
|
||||
<header class="news_header">
|
||||
{% blocktranslate with created=post.created author=post.author %}
|
||||
by {{author}} at <time>{{created}}</time>
|
||||
{% endblocktranslate %}
|
||||
</header>
|
||||
<article>
|
||||
<p>{{post.body|safe|linebreaks}}</p>
|
||||
</article>
|
||||
</section>
|
||||
<hr />
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
<div class="column"> </div>
|
||||
</div>
|
||||
|
||||
{% endblock content %}
|
||||
Reference in New Issue
Block a user