Longread layout fixes See merge request lilcity/backend!7remotes/origin/hasaccess
commit
19da4b6c29
13 changed files with 84 additions and 74 deletions
@ -1,28 +1,32 @@ |
|||||||
{% load thumbnail %} |
{% load thumbnail %} |
||||||
{% if results %} |
{% if results %} |
||||||
<div class="title">Галерея итогов обучения</div> |
<div class="title">Галерея итогов обучения</div> |
||||||
<div class="examples gallery"> |
<div class="examples gallery"> |
||||||
{% for image in course.gallery.gallery_images.all %} |
{% for image in course.gallery.gallery_images.all %} |
||||||
<div class="examples__item"> |
<div class="examples__item"> |
||||||
<a href="{{ image.img.image.url }}"> |
<a href="{{ image.img.image.url }}"> |
||||||
{% thumbnail image.img.image "140x140" crop="center" as im %} |
{% thumbnail image.img.image "140x140" crop="center" as im %} |
||||||
<img class="examples__pic" src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}"> |
<img class="examples__pic" src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}"> |
||||||
{% endthumbnail %} |
{% endthumbnail %} |
||||||
</a> |
</a> |
||||||
|
</div> |
||||||
|
{% endfor %} |
||||||
</div> |
</div> |
||||||
{% endfor %} |
|
||||||
</div> |
|
||||||
{% else %} |
{% else %} |
||||||
<div class="content-block title">{{ content.title }}</div> |
<div class="section section_gradient"> |
||||||
<div class="examples gallery"> |
<div class="section__center center center_sm"> |
||||||
{% for image in content.gallery_images.all %} |
<div class="title">{{ content.title }}</div> |
||||||
<div class="examples__item"> |
<div class="examples gallery"> |
||||||
<a href="{{ image.img.image.url }}"> |
{% for image in content.gallery_images.all %} |
||||||
{% thumbnail image.img.image "140x140" crop="center" as im %} |
<div class="examples__item"> |
||||||
<img class="examples__pic" src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}"> |
<a href="{{ image.img.image.url }}"> |
||||||
{% endthumbnail %} |
{% thumbnail image.img.image "140x140" crop="center" as im %} |
||||||
</a> |
<img class="examples__pic" src="{{ im.url }}" width="{{ im.width }}" height="{{ im.height }}"> |
||||||
|
{% endthumbnail %} |
||||||
|
</a> |
||||||
|
</div> |
||||||
|
{% endfor %} |
||||||
|
</div> |
||||||
|
</div> |
||||||
</div> |
</div> |
||||||
{% endfor %} |
|
||||||
</div> |
|
||||||
{% endif %} |
{% endif %} |
||||||
|
|||||||
@ -1,8 +1,10 @@ |
|||||||
<div class="content-block title"> |
<div class="section section_border"> |
||||||
{{ content.title }} |
<div class="section__center center center_sm"> |
||||||
</div> |
<div class="content-block title"> |
||||||
<div class="gallery"> |
{{ content.title }} |
||||||
<a href="{{ content.img.image.url }}"> |
</div> |
||||||
<img class="content-block pic" src="{{ content.img.image.url }}" alt=""> |
<div> |
||||||
</a> |
<img class="content-block pic" src="{{ content.img.image.url }}" alt=""> |
||||||
|
</div> |
||||||
|
</div> |
||||||
</div> |
</div> |
||||||
|
|||||||
@ -1,11 +1,13 @@ |
|||||||
<div class="content-block title"> |
<div class="section section_border"> |
||||||
{{ content.title }} |
<div class="section__center center center_sm"> |
||||||
</div> |
<div class="content-block title">{{ content.title }}</div> |
||||||
<div class="content-block text"> |
|
||||||
{{ content.txt | safe }} |
<div class="lessons__item"> |
||||||
</div> |
<div class="lessons__row"> |
||||||
<div class="gallery"> |
<div class="lessons__preview"><img class="lessons__pic" style="display: block;border-radius:50%;width:130px;height: 130px" src="{{ content.img.image.url }}"></div> |
||||||
<a href="{{ content.img.image.url }}"> |
<div class="lessons__content">{{ content.txt | safe }}</div> |
||||||
<img class="content-block pic" src="{{ content.img.image.url }}" alt=""> |
</div> |
||||||
</a> |
</div> |
||||||
</div> |
|
||||||
|
</div> |
||||||
|
</div> |
||||||
|
|||||||
@ -1,6 +1,10 @@ |
|||||||
<div class="content-block title"> |
<div class="section section_border"> |
||||||
{{ content.title }} |
<div class="section__center center center_sm"> |
||||||
|
<div class="content-block title"> |
||||||
|
{{ content.title }} |
||||||
|
</div> |
||||||
|
<div class="content-block text" style="margin-bottom:0"> |
||||||
|
{{ content.txt | safe }} |
||||||
</div> |
</div> |
||||||
<div class="content-block text"> |
</div> |
||||||
{{ content.txt | safe }} |
|
||||||
</div> |
</div> |
||||||
@ -1,13 +1,17 @@ |
|||||||
<div class="content-block title"> |
<div class="section section_border"> |
||||||
{{ content.title }} |
<div class="section__center center center_sm"> |
||||||
</div> |
<div class="content-block title"> |
||||||
<div> |
{{ content.title }} |
||||||
{% if 'youtube.com' in content.url or 'youtu.be' in content.url %} |
</div> |
||||||
<iframe width="640" height="360" src="https://www.youtube.com/embed/{{ content.video_index }}" frameborder="0" allow="autoplay; encrypted-media" |
<div> |
||||||
allowfullscreen></iframe> |
{% if 'youtube.com' in content.url or 'youtu.be' in content.url %} |
||||||
{% elif 'vimeo.com' in content.url %} |
<iframe width="640" height="360" src="https://www.youtube.com/embed/{{ content.video_index }}" frameborder="0" allow="autoplay; encrypted-media" |
||||||
<iframe src="https://player.vimeo.com/video/{{ content.video_index }}" width="640" height="360" frameborder="0" webkitallowfullscreen |
allowfullscreen></iframe> |
||||||
mozallowfullscreen allowfullscreen> |
{% elif 'vimeo.com' in content.url %} |
||||||
</iframe> |
<iframe src="https://player.vimeo.com/video/{{ content.video_index }}" width="640" height="360" frameborder="0" webkitallowfullscreen |
||||||
{% endif %} |
mozallowfullscreen allowfullscreen> |
||||||
|
</iframe> |
||||||
|
{% endif %} |
||||||
|
</div> |
||||||
|
</div> |
||||||
</div> |
</div> |
||||||
Loading…
Reference in new issue