Select Git revision
cutprogress.html
Forked from
Video AG Infrastruktur / website
209 commits behind the upstream repository.
Andreas Valder authored
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
cutprogress.html 2.23 KiB
{% extends "base.html" %}
{% block content %}
<div class="panel-group">
<div class="panel panel-default">
<div class="panel-heading">
<span class="panel-title">
Schnittfortschritt{% if user %} für {{ user.realname }}{% endif %}
</span>
<span class="pull-right">
Semester <select id="semesterselect" name="semester"></select>
</span>
</div>
<div class="panel-body table-responsive">
<table class="table table-condensed table-bordered">
<tr>
{% for course in courses %}
<th class="text-center rotate">
<div>
<a title="Zuständig: {{ course.responsible|join(attribute='realname') }}" href="{{ url_for("course", handle=course.handle) }}">{{ course.short }}</a>
</div>
</th>
{% endfor %}
</tr>
{% for i in range(maxlecturecount) %}
<tr class="text-center">
{% for course in courses %}
<td>
{% set l = course.lectures[i]|d({}) %}
{% if "time" in l %}
<a href="{{ url_for("course", handle=course.handle) }}#lecture-{{ l.id }}" title="{{ l.time }} Titel: {{ l.title|replace('\n','') }} Videos: {{ l.videos|count }} Internes Kommentar: {{ l.internal }}">
{% if l.time < datetime.now() %}
{% if l.videos|count == 0 %}
<span style="color: red" aria-hidden="true" class="fa fa-times"></span>
{% else %}
<span style="color: green" aria-hidden="true" class="glyphicon glyphicon-ok"></span>
{% endif %}
{% else %}
<span style="color: grey" aria-hidden="true" class="fa fa-times"></span>
{% endif %}
</a>
{% else %}
{% endif %}
</td>
{% endfor %}
</tr>
{% endfor %}
</table>
</div>
</div>
</div>
<script>
$( document ).ready(function () {
{% for s in allsemester %}
$("#semesterselect").append('<option value="{{ s.semester}}">{{ s.semester|semester }}</option>');
{% endfor %}
$("#semesterselect").val("{{ semester }}")
$("#semesterselect").on("change", function () {
{% if user %}
window.location.href="{{ url_for('cutprogress_user', user=user.id) }}?semester="+$("#semesterselect").val();
{% else %}
window.location.href="{{ url_for('cutprogress') }}?semester="+$("#semesterselect").val();
{% endif %}
});
});
</script>
{% endblock %}