Skip to content
Snippets Groups Projects
Commit 0de13221 authored by Andreas Valder's avatar Andreas Valder Committed by Andreas Valder
Browse files

started working on #26

parent 725931d3
No related branches found
No related tags found
No related merge requests found
......@@ -353,7 +353,7 @@ def auth(): # For use with nginx auth_request
def stats():
return render_template('stats.html')
@app.route('/log')
@app.route('/changelog')
@register_navbar('Changelog', 'book')
@mod_required
def changelog():
......@@ -397,7 +397,7 @@ def new_featured():
return redirect(request.values['ref'])
return id, 200
@app.route('/sitemap.xml', methods=['GET'])
@app.route('/sitemap.xml')
def sitemap():
pages=[]
# static pages
......@@ -414,6 +414,11 @@ def sitemap():
return Response(render_template('sitemap.xml', pages=pages), 200, {'Content-Type': 'application/atom+xml'} )
@app.route('/sortlog')
@register_navbar('Sortierlog', 'sort-by-attributes-alt')
@mod_required
def sortlog():
return render_template('sortlog.html')
import feeds
import importer
......
......@@ -6,6 +6,7 @@
<div class="panel-heading">
<h1 class="panel-title">Changelog</h1>
</div>
<p>Hier werden alle Änderungen an Kursen/Veranstaltungen/Videos etc. geloggt und können Rückgängig gemacht werden.</p>
<div class="table-responsive">
<table class="table table-condensed">
<tr>
......
{% 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">Sortierlog</h1>
</div>
<p>Hier werden die hochgeladenen Videos einsortiert und geloggt wo jede Datei einsortiert wurde.</p>
<div class="table-responsive">
<table class="table table-condensed">
<tr>
<th>Zeit</th>
<th>Pfad</th>
<th>Course</th>
<th>Lecture</th>
<th>Video id</th>
</tr>
{% for i in changelog %}
<tr>
<td>{{i.when}}</td>
<td>{{i.path}}</td>
<td>{{i.course_id}}</td>
<td>{{i.lecture_id}}</td>
<td>{{i.id}}</td>
</tr>
{% endfor %}
</table>
</div>
</div>
</div>
{% endblock %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment