film pages

This commit is contained in:
j 2021-11-21 10:09:26 +01:00
commit c06436433f
10 changed files with 480 additions and 28 deletions

View file

@ -43,7 +43,7 @@ body {
</div>
</div>
<div class="video-block">
<div class="video-block">
<img src="{{ stream_prefix }}{{ film.items.0.id }}/loop.jpg" class="video-fallback-block">
<video
id="timeline-video"
@ -61,10 +61,10 @@ body {
<br>
<p>{{ film.data.summary_zh|safe }}</p>
</div>
<div class="videos">
<div class="items">
{% for item in film.data.items %}
<div class="video">
<a href="fixme">
<div class="item">
<a href="play/{{ item.id }}">
<figure>
<img src="https://archive.njp.ma/{{ item.id }}/480p.jpg">
<figcaption>
@ -99,6 +99,9 @@ body {
<script>
var film = {{ film.json | safe }};
film.prefix = "{{ stream_prefix }}";
var pandoraURL = "{{ pandora_url }}";
</script>
{% comment %}
<script src="{% static 'js/film.js' %}"></script>
{% endcomment %}
{% endblock %}