Add news_snippet.html

Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
2022-07-19 19:08:15 -07:00
parent b2cb1536c1
commit 2fd9b17b37

View 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 %}