@@ -351,13 +351,13 @@ def auth(): # For use with nginx auth_request
...
@@ -351,13 +351,13 @@ def auth(): # For use with nginx auth_request
return"Not allowed",403
return"Not allowed",403
@app.route('/stats')
@app.route('/stats')
@register_navbar('Statistiken','stats')
@register_navbar('Statistiken',icon='stats')
@mod_required
@mod_required
defstats():
defstats():
returnrender_template('stats.html')
returnrender_template('stats.html')
@app.route('/changelog')
@app.route('/changelog')
@register_navbar('Changelog','book')
@register_navbar('Changelog',icon='book')
@mod_required
@mod_required
defchangelog():
defchangelog():
changelog=query('SELECT *, ( "table" || "." || id_value || "." ||field) as path FROM changelog LEFT JOIN users ON (changelog.who = users.id) ORDER BY `when` DESC LIMIT 50')
changelog=query('SELECT *, ( "table" || "." || id_value || "." ||field) as path FROM changelog LEFT JOIN users ON (changelog.who = users.id) ORDER BY `when` DESC LIMIT 50')