videos.html 1.23 KB
Newer Older
1
{% from 'macros.html' import course_list_item %}
Andreas Valder's avatar
Andreas Valder committed
2
3
{% extends "base.html" %}
{% block content %}
4
5
<div class="row">
	<div class="col-xs-12 dropdown" style="margin-bottom: 10px;">
6
7
8
		<span class="pull-right">
			{% if ismod() %} <a class="btn btn-default" style="margin-right: 5px;" href="todo">Neue Veranstaltung</a> {% endif %}
		
9
10
11
12
13
14
15
		<button class="btn btn-primary dropdown-toggle pull-right" type="button" data-toggle="dropdown">Gruppierung
		<span class="caret"></span></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>
		</ul>
16
		</span>
17
18
19
20
21
22
23
	</div>
</div>
{% for g in courses|groupby(groupedby)|reverse %}
<div class="row panel-group">
	<div class="col-xs-12"><div class="panel panel-default">
		<div class="panel-heading">
			<h1 class="panel-title">{{g.grouper}}</h1>
Andreas Valder's avatar
Andreas Valder committed
24
		</div>
Andreas Valder's avatar
Andreas Valder committed
25
		<ul class="{% if not ismod() %}courses-list {% endif %}list-group">
26
27
28
29
30
31
32
33
34
35
36
			{% for i in g.list %}
				{% if groupedby == 'semester' %}
					{{ course_list_item(i) }}
				{% else %}
					{{ course_list_item(i,true) }}
				{% endif %}
			{% endfor %}
		</ul>
	</div></div>
</div>
{% endfor %}
37

Andreas Valder's avatar
Andreas Valder committed
38
{% endblock %}