added last modified entries in settings

This commit is contained in:
2022-09-28 17:27:01 +02:00
parent 7ee8774143
commit e6c7c5661d
5 changed files with 38 additions and 24 deletions

View File

@@ -3,13 +3,6 @@
{% block content %}
<div class="row text-center">
{% if request.authenticated_userid == 'admin' %}
<div class="col-sm-3">
<a href=" {{request.route_url('users')}} "><span class="glyphicon glyphicon-user icone-big"></span>
<h4>UTILISATEURS</h4>
</a>
</div>
{% endif %}
<div class="col-sm-3">
<a href=" {{request.route_url('topics')}} "><span class="glyphicon glyphicon-list icone-big"></span>
<h4>TOPICS / TAGS</h4>
@@ -26,15 +19,23 @@
</a>
</div>
</div>
<div class="row">
<h2>Pages internes</h2>
<div class="row text-center">
{% if request.authenticated_userid == 'admin' %}
<p>
<a href="{{ request.route_url('blog_edit', topic=topic, id='0') }}" class="btn btn-success" role="button">
<span class="glyphicon glyphicon-plus"></span> Nouveau</a>
</p>
{% endif%}
<div class="col-sm-3">
<a href=" {{request.route_url('users')}} "><span class="glyphicon glyphicon-user icone-big"></span>
<h4>UTILISATEURS</h4>
</a>
</div>
<div class="col-sm-3">
<a href="{{ request.route_url('topic', topic='_admin') }}"><span class="glyphicon glyphicon-list icone-big"></span>
<h4>PAGES INTERNES</h4>
</a>
</div>
{% endif %}
</div>
<br>
<div class="row">
<h2>Dernières modifs</h2>
<table id="users_list" class="table table-condensed">
{% for entry in items %}
@@ -44,7 +45,7 @@
<a href="{{ request.route_url('blog', id=entry.id, slug=entry.slug) }}">{{ entry.title }}</a>
</td>
<td>{{ entry.author }}</td>
<td>{{ entry.created.strftime("%d-%m-%Y") }}</td>
<td>{{ entry.edited.strftime("%d-%m-%Y") }}</td>
{% if entry.status == 'brouillon' %}
<td><span class="label label-danger">{{ entry.status }}</span></td>
{% else %}
@@ -60,6 +61,7 @@
<ul>
<li>Pyramid {{ pyramid_version }}</li>
<li>WTForms {{ wtforms_version }}</li>
<li>Markdown {{ markdown_version }}</li>
<li>SQLAlchemy {{ sqlalchemy_version }}</li>
<li>SQLite {{ sqlite_version }}</li>
<li>Python {{ python_version }}</li>