plateforme-tfjm2/tfjm/templates/sidebar.html

21 lines
748 B
HTML

{% load i18n %}
{% if user.is_authenticated %}
<div class="card">
<div class="card-header bg-dark-subtle">
<h3 class="card-title">{% trans "Informations" %}</h3>
</div>
<div class="card-body">
{% for information in user.registration.important_informations %}
<div class="card my-2">
<div class="card-header bg-dark-subtle">
<h5 class="card-title">{{ information.title }}</h5>
</div>
<div class="card-body bg-{{ information.type }}-subtle">
{{ information.content|safe }}
</div>
</div>
{% endfor %}
</div>
</div>
{% endif %}