Skip to content
Snippets Groups Projects
Commit 3ba8d7b4 authored by Andreas Valder's avatar Andreas Valder
Browse files

made courses look better

cleaned up macros
parent 29eab38e
No related branches found
No related tags found
No related merge requests found
...@@ -7,9 +7,15 @@ ...@@ -7,9 +7,15 @@
<h1 class="panel-title">{{course.title}}</h1> <h1 class="panel-title">{{course.title}}</h1>
</div> </div>
<div class="row panel-body"> <div class="row panel-body">
<span class="col-xs-2">Semester:</span><span class="col-xs-10">{{course.semester}}</span> <div class="col-xs-12">
<span class="col-xs-2">Veranstalter:</span><span class="col-xs-10">{{course.organizer}}</span> <table class="table-condensed">
<span class="col-xs-2">Bemerkungen::</span><span class="col-xs-10">{{course.description|safe}}</span> <tbody>
<tr><td>Semester:</td><td>{{course.semester}}</td></tr>
<tr><td>Veranstalter:</td><td>{{course.organizer}}</td></tr>
<tr><td>Bemerkungen:</td><td>{{course.description|safe}}</td></tr>
</tbody>
</table>
</div>
</div> </div>
</div> </div>
<div class="panel panel-default"> <div class="panel panel-default">
......
...@@ -53,7 +53,9 @@ ...@@ -53,7 +53,9 @@
<script src="static/mediaelementjs/mediaelement-and-player.min.js"></script> <script src="static/mediaelementjs/mediaelement-and-player.min.js"></script>
<link rel="stylesheet" href="static/mediaelementjs/mediaelementplayer.css" /> <link rel="stylesheet" href="static/mediaelementjs/mediaelementplayer.css" />
<video class="mejs-player" width="640" height="360" style="width: 100%; height: 100%;"> <video class="mejs-player" width="640" height="360" style="width: 100%; height: 100%;">
<source type="video/mp4" src="https://videoag.fsmpi.rwth-aachen.de/{{ videos[0]['path'] }}" /> {% for v in videos %}
<source type="video/mp4" src="https://videoag.fsmpi.rwth-aachen.de/{{ v.path }}" />
{% endfor %}
</video> </video>
<script> <script>
//$('.mejs-player').mediaelementplayer({ //$('.mejs-player').mediaelementplayer({
...@@ -135,16 +137,18 @@ $('#embedcodebtn').popover( ...@@ -135,16 +137,18 @@ $('#embedcodebtn').popover(
{{ lecture.comment|safe }} {{ lecture.comment|safe }}
</span> </span>
<span class="col-sm-3 col-xs-12"> <span class="col-sm-3 col-xs-12">
<span class="dropdown pull-right"> <span class="pull-right">
<span class="dropdown">
{{ video_download_btn(videos) }} {{ video_download_btn(videos) }}
</span> </span>
<a href="/play?lectureid={{lecture.id}}" class="pull-right"> <a href="/play?lectureid={{lecture.id}}">
<button class="btn btn-default" type="button"> <button class="btn btn-default" type="button">
<span class="glyphicon glyphicon-play"></span> <span class="glyphicon glyphicon-play"></span>
<span>Play</span> <span>Play</span>
</button> </button>
</a> </a>
</span> </span>
</span>
</div> </div>
</li> </li>
{% endmacro %} {% endmacro %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment