Commit 3e49083d authored by Julian Rother's avatar Julian Rother
Browse files

Add groupby option 'subject'

parent 21be06b9
......@@ -323,7 +323,7 @@ def courses():
if course['semester'] == '':
course['semester'] = 'zeitlos'
groupedby = request.args.get('groupedby')
if groupedby not in ['title', 'semester', 'organizer']:
if groupedby not in ['title', 'semester', 'organizer', 'subject']:
groupedby = 'semester'
return render_template('courses.html', courses=courses, groupedby=groupedby)
......
......@@ -19,8 +19,9 @@
</button>
<ul class="dropdown-menu dropdown-menu-right">
<li><a href="?groupedby=semester">Semester</a></li>
<li><a href="?groupedby=title">Veranstaltungen</a></li>
<li><a href="?groupedby=organizer">Dozenten</a></li>
<li><a href="?groupedby=title">Veranstaltung</a></li>
<li><a href="?groupedby=organizer">Dozent</a></li>
<li><a href="?groupedby=subject">Kategorie</a></li>
</ul>
</li>
</ul>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment