Commit 23252268 authored by Andreas Valder's avatar Andreas Valder

made schedule links to course move the page to the right lecture

parent c1838d3e
......@@ -31,10 +31,7 @@
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h1 class="panel-title">Videos</h1>
{% if ismod() %}
<a class="btn btn-default" style="margin-right: 5px;" href="todo">Neuer Termin</a>
{% endif %}
<h1 class="panel-title">Videos{% if ismod() %} <a class="btn btn-default" style="margin-right: 5px;" href="todo">Neuer Termin</a>{% endif %}</h1>
</div>
<ul class="list-group lectureslist">
{% for l in lectures %}
......
......@@ -123,7 +123,7 @@ $('#embedcodebtn').popover(
{% endmacro %}
{% macro lecture_list_item(lecture,videos) %}
<li class="list-group-item">
<li class="list-group-item" id="lecture-{{lecture.id}}">
<div class="row">
<img class="col-sm-2 col-xs-12"src="https://videoag.fsmpi.rwth-aachen.de/{{lecture.titlefile}}" alt="Vorschaubild">
<span class="col-sm-3 col-xs-12">
......
......@@ -17,7 +17,7 @@
{% for l in d.lectures|selectattr('schedule_col','equalto',i) if (((l.time_asdate.time() > t) and (l.time_asdate.time() < times[time_loop.index+1])) != (l.time_asdate.time() == t ) ) %}
<td rowspan="{{l.duration / 15}}" style="background: lightgrey;">
<p class="small">
<strong><a href="{{url_for('course', id=l['course_id'])}}#{{l.id}}">{{l.short}}</a></strong><br>
<strong><a href="{{url_for('course', id=l['course_id'])}}#lecture-{{l.id}}">{{l.short}}</a></strong><br>
{{l.time_asdate.strftime("%H:%M")}} - {{l.end_asdate.strftime("%H:%M")}}<br>
{{l.place}}</p>
</td>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment