2022-11-17 17:51:43 -06:00
< div class = "hero-body movie-body" >
{% if request.get_full_path == "/" %}
< div class = "stats" >
< p class = "stars" > {{ movie.stars_icons }}< / p >
2023-01-20 16:01:45 -06:00
< p > < i class = "gg-time" > < / i > {{ movie.duration_formatted | safe }}< / p >
{% if user.is_authenticated %}
< p > < i class = "gg-software-download" > < / i > {{ movie.count_formatted }}< / p >
{% endif %}
2022-11-17 17:51:43 -06:00
< / div >
{% else %}
< div class = "about" >
< div class = "columns is-desktop" >
< div class = "column" >
< h2 class = "subtitle" > Cartel< / h2 >
< figure >
< img src = "{{ movie.cartel }}" >
< / figure >
< / div >
< div class = "column" >
< h2 class = "subtitle" > Ficha técnica< / h2 >
< table class = "table infobox" >
< tbody >
< tr > < td > Título original< / td > < td > {{ movie.original_name }}< td > < / tr >
2022-12-08 20:18:26 -06:00
< tr > < td > Año< / td > < td >
2023-01-20 16:01:45 -06:00
< a href = "{% url 'search' %}?q=y:{{ movie.year | slugify }}" > {{ movie.year }}< / a >
2022-12-08 20:18:26 -06:00
< td > < / tr >
< tr > < td > País< / td > < td >
{% for country in movie.countries %}
2023-01-20 16:01:45 -06:00
< a href = "{% url 'search' %}?q=p:{{ country | slugify }}" >
2022-12-08 20:18:26 -06:00
{{ country }}< / a > {% if not forloop.last %},{% endif %}
{% endfor %}
< td > < / tr >
2022-11-17 17:51:43 -06:00
< tr > < td > Duración< / td > < td > {{ movie.duration }} min< td > < / tr >
2022-12-08 20:18:26 -06:00
< tr > < td > Dirección< / td > < td >
{% for director in movie.directors %}
2023-01-20 16:01:45 -06:00
< a href = "{% url 'search' %}?q=d:{{ director | slugify }}" >
2022-12-08 20:18:26 -06:00
{{ director }}< / a > {% if not forloop.last %},{% endif %}
{% endfor %}
< td > < / tr >
< tr > < td > Reparto< / td > < td >
{% for actor in movie.actors %}
2023-01-20 16:01:45 -06:00
< a href = "{% url 'search' %}?q=a:{{ actor | slugify}}" >
2022-12-08 20:18:26 -06:00
{{ actor }}< / a > {% if not forloop.last %},{% endif %}
{% endfor %}
< td > < / tr >
< tr > < td > Género< / td > < td >
{% for gender in movie.genders %}
2023-01-20 16:01:45 -06:00
< a href = "{% url 'search' %}?q=g:{{ gender | slugify }}" >
2022-12-08 20:18:26 -06:00
{{ gender }}< / a > {% if not forloop.last %},{% endif %}
{% endfor %}
< td > < / tr >
2022-11-17 17:51:43 -06:00
< / tbody >
< / table >
< / div >
< / div >
{% if movie.wiki.summary %}
< h2 class = "subtitle" > Sinopsis de < a href = "{{ movie.wiki.url }}" target = "_blank" > Wikipedia< / a > < / h2 >
{{ movie.wiki.summary | safe }}
2022-12-08 20:18:26 -06:00
{% else %}
< h2 class = "subtitle" > Sinopsis de Wikipedia< / h2 >
2022-12-14 18:52:34 -06:00
< p > No se encontró su artículo en Wikipedia, haz < a href = "https://es.wikipedia.org/wiki/{{ movie.name }}" > clic aquí< / a > para escribirlo o solicitarlo.< / p >
2022-11-17 17:51:43 -06:00
{% endif %}
< / div >
2023-01-20 16:01:45 -06:00
{% if user.is_authenticated %}
2022-12-09 15:28:30 -06:00
< video id = "player" playsinline controls data-poster = "{{ movie.cartel }}" >
2022-11-17 17:51:43 -06:00
< source src = "{{ movie.file_name }}" type = "video/mp4" >
2023-04-06 12:48:12 -06:00
{% for sub in subs %}
< track kind = "captions" label = "{{ sub.label }}" src = "{{ sub.path }}" srclang = "{{ sub.iso639_1 }}" default / >
{% endfor %}
2022-11-17 17:51:43 -06:00
< / video >
2022-12-09 15:28:30 -06:00
{% load static %}
<!-- CSS y JS necesario paara el reproductor -->
2022-12-09 16:35:46 -06:00
<!-- Cfr. https://github.com/sampotts/plyr -->
2022-12-09 15:28:30 -06:00
< link rel = "stylesheet" href = "{% static 'css/plyr.css' %}" >
< script type = "text/javascript" src = "{% static 'js/plyr.js' %}" > < / script >
< script type = "text/javascript" src = "{% static 'js/player.js' %}" > < / script >
2022-11-17 17:51:43 -06:00
{% endif %}
{% endif %}
< / div >