initial upload
This commit is contained in:
34
cao_blogr/templates/home.jinja2
Normal file
34
cao_blogr/templates/home.jinja2
Normal file
@@ -0,0 +1,34 @@
|
||||
{% 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 %}
|
||||
Reference in New Issue
Block a user