{% extends "app_sirene/anonymous_base.html" %}
{% load static %}
{% load i18n %}


{% block content %}

<a class="btn btn-outline-dark" onclick="history.back()" role="button">
   <i class="fa fa-backward" aria-hidden="true"></i>&nbsp; {% translate 'Back' %} </a>
<hr>


<h3><i class="fa fa-search fa-2x" aria-hidden="true"></i> &nbsp; {{ message.title }}</h3>
<hr>


{% if message.body %}

<h4>
   {{ message.severity.0.widget|safe }} &nbsp; 
   <span class="badge text-bg-{{ message.bgcolor }}">
      {{ message.severity.0.value }} &nbsp; 
   </span>
   - &nbsp; {{ message.category.0.value }}
</h4>

<p><b>{% translate 'Initial message on' %} {{ message.created_at }} ({{ message.created_by.display }})</b></p>

<div class="border border-secondary rounded" style='background-color:#fff'>
<div class="mx-3 my-3">
{{ message.body | safe}}
</div>
</div>
{% endif %}


{% for upd in page.updates.all %}
<br>
<p><b>{% translate 'Updated on ' %} {{ upd.created_at }} ({{ upd.created_by }})</b></p>
<div class="border border-secondary rounded" style='background-color:#eee'>
   <div class="mx-3 my-3">
   {{ upd.content|safe}}
   </div>
</div>
{% endfor %}

{% endblock %}






