-
Notifications
You must be signed in to change notification settings - Fork 2
/
videos_list.html
68 lines (55 loc) · 1.87 KB
/
videos_list.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
{% extends "base.html" %}
{% load thumbnail %}
{% load embed_video_tags %}
{% block contenido %}
<div class="patter-content">
<div class="row">
<div class="large-12 columns">
<h2 class="h-titles"><i class="icon-youtube-play"></i> Nuestra lista de videos</h2>
{% for obj in object_list %}
<div class="video-list">
{% video obj.url as video %}
<a data-reveal-id="videoModal-{{obj.id}}" href="">
<div class="play-list"></div>
{% thumbnail video.thumbnail "210x180" crop="10%" as img %}
<img src="/media/{{ img }}" alt="">
{% endthumbnail %}
</a>
{% endvideo %}
<div class="video-title">{{obj.nombre|truncatewords:5}}</div>
</div>
{% empty %}
<p>No existen videos</p>
{% endfor %}
<div class="large-12 column">
<div class="paginador">
<ul class="pagination">
{% if page_obj.has_previous %}
<li class="arrow unavailable"><a href="?page={{ page_obj.previous_page_number }}">«</a></li>
{% endif %}
{% for numero in page_obj.paginator.page_range %}
<li class="{%if numero == 1 %}current{%endif%}"><a href="?page={{numero}}">{{numero}}</a></li>
{% endfor %}
{% if page_obj.has_next %}
<li class="arrow"><a href="?page={{ page_obj.next_page_number }}">»</a></li>
{% endif %}
</ul>
</div>
</div>
</div>
</div>
</div>
<!--Video Modal box content -->
{% for obj in object_list %}
<div id="videoModal-{{obj.id}}" class="reveal-modal medium">
<h2>{{obj.nombre}}</h2>
<div class="flex-video">
{% video obj.url as video %}
{{video|embed:"640x480"}}
{% endvideo %}
</div>
<a class="close-reveal-modal">×</a>
</div>
{% endfor %}
<!--Video Modal box content -->
{% endblock contenido %}