Add news_snippet.html
Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
11
board/templates/board/news_snippet.html
Normal file
11
board/templates/board/news_snippet.html
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
{% if news %}
|
||||||
|
{% for news_post in news %}
|
||||||
|
<div class="row">
|
||||||
|
<a href="{% url 'board:news_list' %}#{{post.id}}">
|
||||||
|
{{news_post.created.date}} - {{news_post.title}}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
{% endfor %}
|
||||||
|
{% else %}
|
||||||
|
(No news posts)
|
||||||
|
{% endif %}
|
||||||
Reference in New Issue
Block a user