konova/news/templates/news/index.html
mipel b01442ef17 News app
* adds news app for future implementations
2021-07-06 08:53:08 +02:00

29 lines
920 B
HTML

{% extends 'base.html' %}
{% load i18n ksp_filters %}
{% block body %}
<div class="">
<div class="row px-3">
<h4>
{% trans 'All' %}
{% trans 'News' %}
</h4>
</div>
<div class="col-md">
{% for msg in news %}
<div class="card col-md {{msg.importance|bootstrap_cls}}">
<div class="card-body">
<h5 class="card-title">
<strong>{{msg.subject}}</strong>
<br>
<small> {% trans 'Published on' %} {{msg.publish_on}}</small>
</h5>
<small></small>
<article class="card-text">{{msg.body|safe}}</article>
</div>
</div>
{% endfor %}
</div>
</div>
<hr>
{% endblock %}