course.html 561 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
9
	</div>
</div>
10
11
12
<div class="panel panel-default">
	<div class="panel-heading">
		<h1 class="panel-title">Videos</h1>
Andreas Valder's avatar
Andreas Valder committed
13
	</div>
14
15
16
17
18
	<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
19
20
</div>
{% endblock %}