35 lines
1.0 KiB
Django/Jinja
35 lines
1.0 KiB
Django/Jinja
{% extends "cao_blogr:templates/layout.jinja2" %}
|
|
|
|
{% block content %}
|
|
{% if request.authenticated_userid %}
|
|
<p>
|
|
<a href="{{ request.route_url('home') }}">[ Retour ]</a>
|
|
<a href="{{ request.route_url('blog_edit', id=entry.id) }}">[ Modifier ]</a>
|
|
|
|
</p>
|
|
{% endif %}
|
|
|
|
<hr/>
|
|
<p>{{ body_html | safe }}</p>
|
|
<hr/>
|
|
<p>
|
|
Auteur : <strong>{{ entry.author }}</strong><br>
|
|
Publié le : <strong>{{ entry.created.strftime("%d-%m-%Y - %H:%M") }}</strong><br>
|
|
{% if request.authenticated_userid %}
|
|
Modifié le : <strong>{{ entry.edited.strftime("%d-%m-%Y - %H:%M") }}</strong><br>
|
|
Tag : <strong>{{ entry.tag }}</strong><br>
|
|
Statut : <strong>{{ entry.status }}</strong>
|
|
{% endif %}
|
|
</p>
|
|
|
|
<script>
|
|
const anchors = document.querySelectorAll('a');
|
|
anchors.forEach((a) => {
|
|
a.setAttribute('target', '__blank');
|
|
a.setAttribute('rel', 'noopener noreferrer');
|
|
});
|
|
</script>
|
|
|
|
{% endblock %}
|
|
|