2021-09-28 13:10:22 +00:00
|
|
|
{% extends "base.html" %}
|
2021-10-22 12:01:38 +00:00
|
|
|
{% block body_class%}animated animated-text{% endblock %}
|
2021-09-28 13:10:22 +00:00
|
|
|
{% block main %}
|
2021-10-28 16:19:16 +00:00
|
|
|
|
2021-10-28 16:33:47 +00:00
|
|
|
<div class="films">
|
2021-10-28 17:54:01 +00:00
|
|
|
<!--
|
2021-10-28 16:29:44 +00:00
|
|
|
<div>
|
|
|
|
<strong>Sort:</strong>
|
|
|
|
<select id="sort-select">
|
|
|
|
<option value="position" selected>Default</option>
|
|
|
|
<option value="title">Title</option>
|
|
|
|
<option value="duration">Duration</option>
|
|
|
|
<option value="hue">Hue</option>
|
|
|
|
<option value="saturation">Saturation</option>
|
|
|
|
<option value="lightness">Lightness</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
2021-10-28 17:54:01 +00:00
|
|
|
-->
|
2021-10-28 16:33:47 +00:00
|
|
|
<div id="films-list">
|
|
|
|
{% for film in films %}
|
|
|
|
<div class="film"
|
|
|
|
data-position="{{ film.position }}"
|
|
|
|
data-title="{{ film.data.title }}"
|
|
|
|
data-duration="{{ film.data.duration }}"
|
|
|
|
data-hue="{{ film.data.hue }}"
|
|
|
|
data-saturation="{{ film.data.saturation }}"
|
|
|
|
data-lightness="{{ film.data.lightness }}"
|
|
|
|
>
|
2021-11-12 10:21:00 +00:00
|
|
|
<a href="{{ film.get_absolute_url }}">
|
|
|
|
<figure>
|
|
|
|
<div>
|
|
|
|
{% for item in film.data.items %}
|
|
|
|
<img src="https://archive.njp.ma/{{ item.id }}/480p.jpg">
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
<figcaption>
|
|
|
|
{{ film.data.title | safe }}
|
|
|
|
</figcaption>
|
|
|
|
</figure>
|
|
|
|
</a>
|
2021-10-28 16:33:47 +00:00
|
|
|
</div>
|
|
|
|
{% endfor %}
|
2021-09-30 18:33:47 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-09-28 13:10:22 +00:00
|
|
|
{% endblock %}
|
2021-10-28 16:19:16 +00:00
|
|
|
|
|
|
|
{% block end %}
|
2021-11-12 10:21:00 +00:00
|
|
|
<script src="{% static 'js/films.js' %}"></script>
|
|
|
|
{% endblock %}
|