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.
47 lines
2.1 KiB
47 lines
2.1 KiB
{% extends "templates/lilcity/index.html" %}
|
|
{% load static %}
|
|
{% block title %}{{ livelesson.title }} - {{ block.super }}{% endblock title %}
|
|
|
|
{% block twurl %}{{ request.build_absolute_uri }}{% endblock twurl %}
|
|
{% block ogtitle %}{{ livelesson.title }} - {{ block.super }}{% endblock ogtitle %}
|
|
{% block ogurl %}{{ request.build_absolute_uri }}{% endblock ogurl %}
|
|
{% if livelesson.cover and livelesson.cover.image %}
|
|
{% block ogimage %}http://{{request.META.HTTP_HOST}}{{ livelesson.cover.image.url }}{% endblock ogimage %}
|
|
{% endif %}
|
|
|
|
{% 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 | safe | linebreaks }}</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>-->
|
|
<comments obj-type="live-lesson" obj-id="{{ livelesson.id }}" :is-chat="true"></comments>
|
|
{% 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="content/blocks/"|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 %}
|
|
|