nuitdelinfo_2021/templates/article/article.html

53 lines
1.4 KiB
HTML
Raw Normal View History

2021-12-03 04:53:31 +01:00
{% extends 'base.html' %}
{% load static %}
{% block content %}
{% include 'quicksearch.html' %}
<section class="article-detail">
<h1>{{ rescue.name }}</h1>
<p class="date">{{ rescue.date }}</p>
<p class="desc">{{ rescue.resume }}</p>
<div class="pic-flex">
<img src="{% static 'images/bateau.jpg' %}">
<img src="{% static 'images/sauvetage.png' %}">
</div>
<div class="content">
{{ rescue.description.html | safe }}
</div>
<div class="save">
<div class="saver">
<h2>Sauveteurs :</h2>
{% for people in rescue.rescuers.all %}
<a href="/p/{{ people.pk }}">{{ people }}</a>
{% endfor %}
</div>
<div class="saved">
<h2>Personnes sauvées :</h2>
{% for people in rescue.saved.all %}
<a href="/p/{{ people.pk }}">{{ people }}</a>
{% endfor %}
</div>
</div>
</section>
{% endblock %}
2021-12-03 00:23:06 +01:00
{% if not rescue.validated %}
{% if rescue.pending_edit_of %}
<h1>This edit is not validated !</h1>
{% else %}
<h1>This new entry is not validated !</h1>
{% endif %}
{% endif %}
{{ rescue.location_long }} {{ rescue.location_lat }} <br />
2021-12-03 04:53:31 +01:00
2021-12-03 00:23:06 +01:00
{{ rescue.testimonials.html | safe }} <br />
{{ rescue.sources.html | safe }}
2021-12-03 04:53:31 +01:00
2021-12-03 00:23:06 +01:00
<h3>Rescuers</h3>
2021-12-03 04:53:31 +01:00