course.html 905 Bytes
Newer Older
Andreas Valder's avatar
Andreas Valder committed
1
{% from 'macros.html' import lecture_list_item %}
Andreas Valder's avatar
Andreas Valder committed
2
3
4
{% from 'macros.html' import preview %}
{% extends "base.html" %}
{% block content %}
5
6
<div class="panel panel-default">
	<div class="panel-heading">
7
		<h1 class="panel-title">{{course.title}}</h1>
Andreas Valder's avatar
Andreas Valder committed
8
	</div>
Andreas Valder's avatar
Andreas Valder committed
9
	<div class="row panel-body">
Andreas Valder's avatar
Andreas Valder committed
10
11
12
13
14
15
16
17
18
		<div class="col-xs-12">
			<table class="table-condensed">
				<tbody>
					<tr><td>Semester:</td><td>{{course.semester}}</td></tr>
					<tr><td>Veranstalter:</td><td>{{course.organizer}}</td></tr>
					<tr><td>Bemerkungen:</td><td>{{course.description|safe}}</td></tr>
				</tbody>
			</table>
		</div>
Andreas Valder's avatar
Andreas Valder committed
19
	</div>
Andreas Valder's avatar
Andreas Valder committed
20
</div>
21
22
23
<div class="panel panel-default">
	<div class="panel-heading">
		<h1 class="panel-title">Videos</h1>
Andreas Valder's avatar
Andreas Valder committed
24
	</div>
25
26
27
28
29
	<ul class="list-group lectureslist">
		{% for l in lectures %}
			{{ lecture_list_item(l,videos|selectattr('lecture_id','equalto',l.id)|list) }}
		{% endfor %}
	</ul>
Andreas Valder's avatar
Andreas Valder committed
30
31
</div>
{% endblock %}