You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.6 KiB
39 lines
1.6 KiB
{% extends "templates/lilcity/index.html" %}
|
|
{% load static %}
|
|
{% block title %}{{ livelesson.title }} - {{ block.super }}{% endblock title %}
|
|
|
|
{% block content %}
|
|
<div class="section" style="margin-bottom:0;padding-bottom:0">
|
|
<div class="section__center center center_sm">
|
|
<div class="lesson">
|
|
<div class="lesson__subtitle subtitle">{{ livelesson.title }}</div>
|
|
<div class="lesson__content">{{ livelesson.short_description }}</div>
|
|
<div class="lesson__video video">
|
|
{% if livelesson.stream_index %}
|
|
<iframe class="lesson__video_frame" src="https://player.vimeo.com/video/{{ livelesson.stream_index }}?autoplay=1" frameborder="0" webkitallowfullscreen
|
|
mozallowfullscreen allowfullscreen>
|
|
</iframe>
|
|
<span>Если видео не загрузилось, - уменьшите качество видео или <a href="#" onclick="location.reload();">обновите страницу</a></span>
|
|
<iframe class="lesson__chat_frame" src="https://vimeo.com/live-chat/{{ livelesson.stream_index }}" frameborder="0"></iframe>
|
|
{% else %}
|
|
{% if livelesson.cover %}
|
|
<img class="video__pic" src="{{ livelesson.cover.image.url }}"/>
|
|
{% endif %}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% for content in livelesson.content.all %}
|
|
|
|
{% with template="course/content/"|add:content.ctype|add:".html" %}
|
|
{% include template %}
|
|
{% endwith %}
|
|
|
|
{% endfor %}
|
|
<div class="section">
|
|
<div class="section__center center center_sm">
|
|
{% include 'templates/blocks/share.html' %}
|
|
</div>
|
|
</div>
|
|
{% endblock content %}
|
|
|