index.html 4.62 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
<div class="row">
	<div class="col-xs-12">
		<ul class="list-inline pull-right">
			{% if ismod() %}
Andreas Valder's avatar
Andreas Valder committed
10
				<li style="padding-right: 0px;">
11
					<a class="btn btn-default" href="{{ url_for('create', table='announcements', ref=request.url) }}">Neue Ankündigung</a>
Andreas Valder's avatar
Andreas Valder committed
12
				</li>
13
14
15
16
      {% 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
		{% if (featured|length > 0) or ismod() %}
Andreas Valder's avatar
Andreas Valder committed
34
35
			<div class="panel panel-default">
				<div class="panel-heading">
Andreas Valder's avatar
Andreas Valder committed
36
37
					<h1 class="panel-title">Featured
						{% if ismod() %}
38
							<a class="btn btn-default" href="{{ url_for('create', table='featured', ref=request.url) }}">Neue Empfehlung</a>
Andreas Valder's avatar
Andreas Valder committed
39
40
						{% endif %}
					</h1>
Andreas Valder's avatar
Andreas Valder committed
41
42
				</div>
				<div class="panel-body">
Andreas Valder's avatar
Andreas Valder committed
43
					<div id="myCarousel" class="carousel slide" data-ride="carousel" style="background-color: #EEE; min-height: 400px;" {% if ismod() %}data-interval="false"{% endif %}>
Andreas Valder's avatar
Andreas Valder committed
44
45
						<ol class="carousel-indicators">
							{% for i in featured %}
Andreas Valder's avatar
Andreas Valder committed
46
							<li data-target="#myCarousel" data-slide-to="{{ loop.index0 }}" {% if loop.first %} class="active" {% endif %}></li>
Andreas Valder's avatar
Andreas Valder committed
47
48
49
50
51
							{% endfor %}
						</ol>
							<div class="carousel-inner" role="listbox">
						{% for i in featured %}
								<div class="item {% if loop.first %}active{% endif %}">
Andreas Valder's avatar
Andreas Valder committed
52
53
54
55
56
57
58
59
60
61
									{% if ismod() %}
										<div class="center-block">
											{{ valueeditor(('featured',i.id,'text'), i.text) }}
											{{ valueeditor(('featured',i.id,'title'), i.title) }}
											{{ valuecheckbox(('featured',i.id,'visible'),i.visible) }}
										</div>
									{% else %}
										{{i.text|safe}}
									{% endif %}
									<div class="carousel-caption">{{ i.title }}</div>
Andreas Valder's avatar
Andreas Valder committed
62
63
64
								</div>
						{% endfor %}
							</div>
Andreas Valder's avatar
Andreas Valder committed
65
66
67
68
69
70
71
72
73
74
							{% if not ismod() %}
								<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>
							{% endif %}
Andreas Valder's avatar
Andreas Valder committed
75
76
					</div>
				</div>
Andreas Valder's avatar
Andreas Valder committed
77
			</div>
Andreas Valder's avatar
Andreas Valder committed
78
		{% endif %}
79
80
	</div>
	<div class="col-md-6">
Andreas Valder's avatar
Andreas Valder committed
81
82
83
84
		<div class="panel panel-default">
			<div class="panel-heading">
				<h1 class="panel-title">Nächste Aufnahmen</h1">
			</div>
85
86
87
88
89
90
91
92
			{% 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">
93
									{{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
94

95
96
97
98
99
100
101
								</li>
								{% endfor %}
							</ul>
						</li>
					{% endfor %}
				</ul>
			{% else %}
102
103
104
				<div class="panel-body">
					<p>In den nächsten 7 Tagen wird noch nichts aufgenommen oder gestreamt.</p>
				</div>
105
			{% endif %}
Andreas Valder's avatar
Andreas Valder committed
106
		</div>
107
108
		<div class="panel panel-default">
			<div class="panel-heading">
109
				<h1 class="panel-title">Neueste Videos <a class="fa fa-rss-square pull-right" aria-hidden="true" href="{{url_for('feed')}}"></a></h1">
110
111
112
113
114
115
			</div>
			<ul class="list-group videopreview">
				{% for i in latestvideos %}
					{{ preview(i) }}
				{% endfor %}
			</ul>
Andreas Valder's avatar
Andreas Valder committed
116
117
118
119
		</div>
	</div>
</div>
{% endblock %}