Skip to content
Snippets Groups Projects
Commit 2a7dc3bf authored by Andreas Valder's avatar Andreas Valder
Browse files

started changelog

parent 235aaecc
No related branches found
No related tags found
No related merge requests found
......@@ -249,3 +249,9 @@ def schedule():
@mod_required
def stats():
return render_template('stats.html')
@app.route('/log')
@register_navbar('Changelog', 'book')
@mod_required
def log():
return render_template('log.html', changelog=query('SELECT * FROM changelog ORDER BY "when" LIMIT 10'))
{% from 'macros.html' import preview %}
{% extends "base.html" %}
{% block content %}
<div class="panel-group">
<div class="panel panel-default">
<div class="panel-heading">
<h1 class="panel-title">Changelog</h1>
</div>
<table class="table">
<tr>
<th>Zeit</th>
<th>Wer</th>
<th>Pfad</th>
<th>alter Wert</th>
<th>neuer Wert</th>
<th></th>
</tr>
{% for i in changelog %}
<tr>
<td>{{i.when}}</td>
<td>{{i.who}}</td>
<td>{{i.path}}</td>
<td>"{{i.value_old}}"</td>
<td>"{{i.value_new}}"</td>
<td><a class="btn btn-default">undo</button></td>
</tr>
{% endfor %}
</table>
</div>
</div>
{% endblock %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment