{% extends "layout.jinja2" %}

{% block content %}

<div class="row">
	<div class="col-lg-4 mb-3">
	    <div class="card mb-0 ps-3">
	        <nav class="sidebar-nav scroll-sidebar" data-simplebar="">
				<ul></ul>
				<li class="sidebar-item mb-3">
					<a class="sidebar-link" href=" {{request.route_url('topics')}} " aria-expanded="false">
						<span><i class="ti ti-tag fs-6"></i></span>
						<span class="hide-menu">Topics / Tags</span>
					</a>
				</li>
				<li class="sidebar-item mb-3">
					<a class="sidebar-link" href=" {{request.route_url('topic', topic='_admin')}} " aria-expanded="false">
						<span><i class="ti ti-files fs-6"></i></span>
						<span class="hide-menu">Pages internes</span>
					</a>
				</li>
				<li class="sidebar-item mb-3">
					<a class="sidebar-link" href=" {{request.route_url('stats_pages') }} " aria-expanded="false">
						<span><i class="ti ti-chart-bar fs-6"></i></span>
						<span class="hide-menu">Statistiques</span>
					</a>
				</li>
				<li class="sidebar-item mb-3">
					<a class="sidebar-link" href="https://www.edrawmind.com/online/files" target="_blank" aria-expanded="false">
						<span><i class="ti ti-pencil fs-6"></i></span>
						<span class="hide-menu">EdrawMind</span>
					</a>
				</li>
				{% if request.authenticated_userid == 'admin' %}
					<li class="sidebar-item mb-3">
						<a class="sidebar-link" href=" {{request.route_url('users')}} " aria-expanded="false">
							<span><i class="ti ti-users fs-6"></i></span>
							<span class="hide-menu">Utilisateurs</span>
						</a>
					</li>
				{% endif %}
				</ul>
			</nav>
		</div>
		<div class="pt-4">
			<h4>Versions des packages</h4>
			<ul>
				<li>Pyramid {{ pyramid_version }}</li>
				<li>Markdown {{ markdown_version }}</li>
				<li>SQLAlchemy {{ sqlalchemy_version }}</li>
				<li>SQLite {{ sqlite_version }}</li>
				<li>Python {{ python_version[0:28] }}</li>
			</ul>
		</div>
	</div>

	<div class="col-lg-8 mb-3">
		<div class="card mb-0 ps-3 pt-3">
			<h4>Dernières modifs</h4>	
			<table id="users_list" class="table table-condensed">
				{% for entry in items %}
					<tr>
						<td>{{ entry.edit_date }}</td>
						<td>{{ entry.editor }}</td>
						<td>
							<a href="{{ request.route_url('blog', id=entry.id, slug='slug') }}">{{ entry.title }}</a>
						</td>
						<td>{{ entry.tag }}</td>
						{% if entry.status == 'brouillon' %}
							<td><span class="label label-danger">{{ entry.status }}</span></td>
						{% else %}
							<td> </td>
						{% endif %}
					</tr>
				{% endfor %}
			</table>
		</div>	

	</div>
	<br>
</div>
	<div class="row">
	</div>
</div>
{% endblock %}
