{% 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="scroll-150">{{msg.body|safe}}</article>
                    </div>
                </div>
            {% endfor %}
        </div>
    </div>
    <hr>
{% endblock %}