32 lines
967 B
Django/Jinja
32 lines
967 B
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/>
|
|
{% if request.authenticated_userid %}
|
|
<p>
|
|
Topic : <strong>{{ entry.topic }}</strong>
|
|
|
|
|
Tag : <strong>{{ entry.tag }}</strong>
|
|
|
|
|
Créé le : <strong>{{ entry.created.strftime("%d-%m-%Y - %H:%M") }}</strong>
|
|
|
|
|
Modifié le : <strong>{{ entry.edited.strftime("%d-%m-%Y - %H:%M") }}</strong>
|
|
</p>
|
|
{% else %}
|
|
<p>
|
|
Créé : <strong title="{{ entry.created }}">{{ entry.created_in_words }}</strong>
|
|
</p>
|
|
{% endif %}
|
|
|
|
{% endblock %}
|