index.html 3.99 KB
Newer Older
Andreas Valder's avatar
Andreas Valder committed
1
{% from 'macros.html' import preview %}
Andreas Valder's avatar
Andreas Valder committed
2
{% extends "base.html" %}
3
{% set page_border = 0 %}
4
{% set min_announcement_level = 0 %}
Andreas Valder's avatar
Andreas Valder committed
5
{% block content %}
6
7
8
9
10
11
12
13
14
15
16
<div class="row">
	<div class="col-xs-12">
		<ul class="list-inline pull-right">
			{% if ismod() %}
      <li style="padding-right: 0px;">
        <a class="btn btn-default" href="{{ url_for('new_announcement', ref=request.url) }}">Neue Ankündigung</a>
      </li>
      {% endif %}
		</ul>
	</div>
</div>
17
18
19
20
21
<div class="row">
	<div class="col-md-6 panel-group">
		<div class="panel panel-default">
			<div class="panel-heading">
				<h1 class="panel-title">Video AG</h1>
Andreas Valder's avatar
Andreas Valder committed
22
			</div>
23
24
			<div class="panel-body">
				<p>Wir machen Vorlesungsvideos, damit du dir deine Vorlesungen angucken kannst, wann, wo und so oft <strong>du</strong> willst ;)</p>
25
				<p><strong>Probleme?</strong><a href="{{url_for('faq')}}"> Hier gehts zur FAQ</a></p>
26
27
28
29
30
				<p>Wenn du die Videos nützlich fandest, schreib doch bitte den Dozenten eine kurze E-Mail. Waren die Videos grauenhaft? Kritik an uns.</p>
				<p>Wenn du mitmachen willst, Fragen oder Anregungen hast, oder nur mal schauen möchtest, komm zu unserem AG-Treffen oder schreib uns eine E-Mail.
				Insbesondere freuen wir uns über Studis der Mathematik und Physik, die ihre Vorlesungen filmen wollen.</p>
				<p>Die nächste Sitzung der AG findet am <strong>10.08.2016 ab 18:00 Uhr in den Räumlichkeiten der Fachschaft im Augustinerbach 2a, 1. Obergeschoss</strong> statt.
				</p>
Andreas Valder's avatar
Andreas Valder committed
31
32
			</div>
		</div>
Andreas Valder's avatar
Andreas Valder committed
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
		{% if featured|length > 0 %}
			<div class="panel panel-default">
				<div class="panel-heading">
					<h1 class="panel-title">Featured</h1>
				</div>
				<div class="panel-body">
					<div id="myCarousel" class="carousel slide" data-ride="carousel" style="background-color: #EEE; min-height: 400px;">
						<!-- Indicators -->
						<ol class="carousel-indicators">
							{% for i in featured %}
								<li data-target="#myCarousel" data-slide-to="0" {% if loop.first %} class="active" {% endif %}></li>
							{% endfor %}
						</ol>
							<div class="carousel-inner" role="listbox">
						{% for i in featured %}
								<div class="item {% if loop.first %}active{% endif %}">
									{{ i.text|safe }}
									<div class="carousel-caption"><h1>{{ i.title }}</h1></div>
								</div>
						{% endfor %}
							</div>
						<a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
							<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
							<span class="sr-only">Previous</span>
						</a>
						<a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
							<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
							<span class="sr-only">Next</span>
						</a>
					</div>
				</div>
Andreas Valder's avatar
Andreas Valder committed
64
			</div>
Andreas Valder's avatar
Andreas Valder committed
65
		{% endif %}
66
67
	</div>
	<div class="col-md-6">
Andreas Valder's avatar
Andreas Valder committed
68
69
70
71
		<div class="panel panel-default">
			<div class="panel-heading">
				<h1 class="panel-title">Nächste Aufnahmen</h1">
			</div>
72
73
74
75
76
77
78
79
80
			{% if upcomming|length > 0 %}
				<ul class="list-group">
					{% for g in upcomming|groupby('date') %}
						<li class="list-group-item">
							<ul class="list-group" style="margin: 0px;">
								<strong>{{ g.grouper|date }}</strong>
								{% for i in g.list %}
								<li class="list-group-item list-group-item-condensed">
									{{i.time|time}} {{i.place}} <a href="{{url_for('course', id=i.course_id)}}">{{i.course_title}}</a>: <a href="{{url_for('course', id=i.course_id)}}#lecture-{{i.id}}">{{i.title}}</a>
Andreas Valder's avatar
Andreas Valder committed
81

82
83
84
85
86
87
88
89
90
								</li>
								{% endfor %}
							</ul>
						</li>
					{% endfor %}
				</ul>
			{% else %}
				<p>In den nächsten 7 Tagen wird noch nichts aufgenommen oder gestreamt.</p>
			{% endif %}
Andreas Valder's avatar
Andreas Valder committed
91
		</div>
92
93
		<div class="panel panel-default">
			<div class="panel-heading">
94
				<h1 class="panel-title">Neueste Videos <a class="fa fa-rss-square pull-right" aria-hidden="true" href="{{url_for('feed')}}"></a></h1">
95
96
97
98
99
100
			</div>
			<ul class="list-group videopreview">
				{% for i in latestvideos %}
					{{ preview(i) }}
				{% endfor %}
			</ul>
Andreas Valder's avatar
Andreas Valder committed
101
102
103
104
		</div>
	</div>
</div>
{% endblock %}