{% extends "admin/base_site.html" %}
{% load i18n %}
{% load rl %}
{% block stylesheet %}{% load adminmedia %}{% admin_media_prefix %}css/dashboard.css{% endblock %}
{% block breadcrumbs %}<div class="breadcrumbs"><a href="/admin">Home</a> &rsaquo; {{ title }}</div>{% endblock %}
{% block content %}
<div id="content-main">
{% if not logs %}
<p>No logs available matching {% py logger._logfilesPat() %}</p>
{% else %}
<form action="" method="post">
	<p>
		current file is {% py os.path.normpath(os.path.abspath(log)) %}<br/>
		<input type="submit" value="Use File"/>
		<select name="log">
			{% for l in logs %}
			<option value="{{ l }}"{% ifequal l log %} selected="selected"{% endifequal %}>
			{% py ''.join(os.path.basename(l).split('.')[:-1]) %}
			</option>
			{% endfor %}
		</select>
	</p>
</form>
{{ listing }}
{% endif %}
</div>
{% endblock %}