35 lines
885 B
Django/Jinja
35 lines
885 B
Django/Jinja
{% extends "layout.jinja2" %}
|
|
|
|
{% block content %}
|
|
|
|
{% if request.authenticated_userid %}
|
|
<p><a href="{{ request.route_url('blog_edit', id='0') }}">
|
|
[Nouveau post]</a>
|
|
</p>
|
|
{% endif%}
|
|
|
|
{% if paginator.items %}
|
|
|
|
{% for entry in paginator.items %}
|
|
<div class="col-xs-10">
|
|
{{ entry.created.strftime("%d-%m-%Y") }}
|
|
<a href="{{ request.route_url('blog', id=entry.id, slug=entry.slug) }}">
|
|
<span class="glyphicon glyphicon-triangle-right"></span> {{ entry.title }}
|
|
</a>
|
|
</div>
|
|
<div class="col-xs-2">
|
|
<span class="glyphicon glyphicon-triangle-left"></span> {{ entry.tag }}
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
{{ paginator.pager() |safe }}
|
|
|
|
{% else %}
|
|
|
|
<p>No blog entries found.</p>
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|