News app
* adds news app for future implementations
This commit is contained in:
29
news/templates/news/index.html
Normal file
29
news/templates/news/index.html
Normal file
@@ -0,0 +1,29 @@
|
||||
{% 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 %}
|
||||
Reference in New Issue
Block a user