diff --git a/templates/course_id.html b/templates/course_id.html index b023577e51482025dfe1d69caadb8524e38ff017..1b1a4e693c90f56c202ff912484829d6d5a7a8ad 100644 --- a/templates/course_id.html +++ b/templates/course_id.html @@ -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 %} diff --git a/templates/macros.html b/templates/macros.html index 468bdd19700555f1aebb983f7afe506e9fe037c5..8bcb597e8c28684c839b0e85692c9bf0e0aeda4b 100644 --- a/templates/macros.html +++ b/templates/macros.html @@ -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"> diff --git a/templates/schedule.html b/templates/schedule.html index f4f64d204c573da0ffee8b4a6a936f5cfd50a001..42328d4bd527fbab070ddee436528edc77ff7335 100644 --- a/templates/schedule.html +++ b/templates/schedule.html @@ -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>