Skip to content
Snippets Groups Projects
Select Git revision
  • 3ba8d7b49fb4f52d2ac2a2ae91987a0101e2b55c
  • master default protected
  • intros
  • live_sources
  • bootstrap4
  • modules
6 results

macros.html

Blame
  • Forked from Video AG Infrastruktur / website
    Source project has a limited visibility.
    Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    macros.html 4.99 KiB
    {% macro preview(lecture) %}
    
    <li class="list-group-item">
    	<a class="hidden-xs" href="/play?lectureid={{ lecture['id'] }}" title="{{ lecture['coursetitle'] }}">
    		<div class="row">
    			<img class="col-xs-4" src="https://videoag.fsmpi.rwth-aachen.de/{{ lecture['titlefile'] }}" alt="Vorschaubild">
    			<div class="col-xs-4">
    				<span style="color: #000;"><strong>{{ lecture['short'] }}</strong></span><br>
    				<span style="color: #000;">{{ lecture['time'] }}</span>
    				{% if lecture['speaker'] %}
    					<div class="small" style="color: #000;">Gehalten von {{ lecture['speaker'] }} </div>
    				{% endif %}
    			</div>
    			<div class="col-xs-4" style="color: #000;">
    				<div style="color: #000;">{{ lecture['title']  }}</div>
    				<p style="font-style: italic; color: #777;">{{ lecture['comment'] }}</p>
    			</div>
    		</div>
    	</a>
    	<a class="visible-xs" href="/play?lectureid={{ lecture['id'] }}" title="{{ lecture['coursetitle'] }}">
    		<div class="row">
    			<img class="col-xs-12" src="https://videoag.fsmpi.rwth-aachen.de/{{ lecture['titlefile'] }}" alt="Vorschaubild">
    		</div>
    		<div class="row">
    			<div class="col-xs-12">
    				<span style="color: #000;"><strong>{{ lecture['short'] }}</strong></span>
    				<span style="color: #000;">{{ lecture['time'] }}</span>
    			</div>
    		</div>
    		{% if lecture['speaker'] %}
    		<div class="row">
    			<div class="col-xs-12">
    				<div class="small" style="color: #000;">Gehalten von {{ lecture['speaker'] }} </div>
    			</div>
    		</div>
    		{% endif %}
    		<div class="row">
    			<div class="col-xs-12">
    				<div style="color: #000;">{{ lecture['title']  }}</div>
    			</div>
    		</div>
    		<div class="row">
    			<div class="col-xs-12">
    				<p style="font-style: italic; color: #777;">{{ lecture['comment'] }}</p>
    			</div>
    		</div>
    	</a>
    </li>
    
    {% endmacro %}
    
    {% macro player(lecture, videos) %}
    <script src="static/mediaelementjs/mediaelement-and-player.min.js"></script>
    <link rel="stylesheet" href="static/mediaelementjs/mediaelementplayer.css" />
    <video class="mejs-player" width="640" height="360" style="width: 100%; height: 100%;">
    	{% for v in videos %}
    		<source type="video/mp4" src="https://videoag.fsmpi.rwth-aachen.de/{{ v.path }}" />
    	{% endfor %}
    </video>
    <script>
    //$('.mejs-player').mediaelementplayer({ 
    //	features: ['playpause','progress','current','duration','tracks','volume','fullscreen'],
    //	speeds:   ['3.00', '2.50', '2.00', '1.50', '1.25', '1.00', '0.75']
    //});
    </script>
    {% endmacro %}
    
    {% macro course_list_item(course,show_semester=False) %}
    <li class="list-group-item">
    	<div class="row">