LIL-225. Add styles to content block templates

remotes/origin/hasaccess
Ivlev Denis 8 years ago
parent 0bff92cbfa
commit 8e2448c5fc
  1. 4
      apps/course/templates/course/content/image.html
  2. 8
      apps/course/templates/course/content/imagetext.html
  3. 4
      apps/course/templates/course/content/text.html
  4. 7
      apps/course/templates/course/content/video.html

@ -1,6 +1,6 @@
<div>
<div class="content-block title">
{{ content.title }}
</div>
<div>
<img src="{{ content.img.image.url }}" alt="">
<img class="content-block pic" src="{{ content.img.image.url }}" alt="">
</div>

@ -1,9 +1,9 @@
<div>
<div class="content-block title">
{{ content.title }}
</div>
<div>
{{ content.text }}
<div class="content-block text">
{{ content.txt }}
</div>
<div>
<img src="{{ content.img.image.url }}" alt="">
<img class="content-block pic" src="{{ content.img.image.url }}" alt="">
</div>

@ -1,6 +1,6 @@
<div>
<div class="content-block title">
{{ content.title }}
</div>
<div>
<div class="content-block text">
{{ content.txt }}
</div>

@ -1,14 +1,13 @@
<div>
<div class="content-block title">
{{ content.title }}
</div>
<div>
{% if 'youtu' in content.url %}
{% if 'youtube.com' in content.url or 'youtu.be' in content.url %}
<iframe width="640" height="360" src="https://www.youtube.com/embed/{{ content.video_index }}" frameborder="0" allow="autoplay; encrypted-media"
allowfullscreen></iframe>
{% elif 'vimeo' in content.url %}
{% elif 'vimeo.com' in content.url %}
<iframe src="https://player.vimeo.com/video/{{ content.video_index }}" width="640" height="360" frameborder="0" webkitallowfullscreen
mozallowfullscreen allowfullscreen>
</iframe>
{% endif %}
</div>
Loading…
Cancel
Save