{% set title = [film.title, ' (', film.year, ')'] | join %} {% block opengraph %} {% endblock %} {% extends 'layouts/layout.html' %} {% block body %}
{% if messages.success %} {% endif %} {% if messages.error %} {% endif %} {% if messages.info %} {% endif %}
{% if film.status == 'approved' or user.mod or user.adm or film.featured or film.featured == 'true'%}
{{ film.title }}({{ film.year }})
{#

{{ [film.title, ' (', film.year, ')'] | join }} #}

{{ film.title }} {%- set total = 4 %} {%- set n = 1 %} {%- for r in all_rating %} {%- if r.stars > 0 %} {%- set total = total + r.stars %} {%- set n = n + 1%} {%- endif %} {%- endfor %} {{ (total / n) | round(1) }}

{{ film.subtitle }} {% if film.subtitle %} · {%endif%} {{film.year}} {% if film.classind %} · {{ film.classind }}{% endif %} {% if film.duration %} · {{ film.duration }} {% endif %}

{{ film.sinopse }}

{% if user.mod or user.adm %}{% endif %} {# #} {# #} {% if not user %} {% elif not interaction.alreadyWatched %} {% elif interaction.alreadyWatched %} {% endif %} {% if not user %} {% elif not interaction.favorite %} {% elif interaction.favorite %} {% endif %}


    {% macro printSearchField(detail, content) %} {% if content %} {{t(detail)}}

    {% set list1 = content.split(',') %}{% for list in list1 %}{{ list | trim}}{%if (loop.index0 < loop.length-1) %} {%endif%}{% endfor %}

    {% endif %} {% endmacro %} {% macro printSimpleField(detail, content) %} {% if content %}

  • {{ t(detail) }}
  • {{ t(content) | replace(",",", ")}}
  • {% endif %} {% endmacro %} {{ printSearchField('Direção', film.crew.director) }} {{ printSimpleField('Título Original', film.original_title) }} {% if film.location.country.code %}

  • {{ t('País de Origem') }}
  • {{ t(film.location.country.name) | replace(",",", ")}}
  • {% endif %} {{ printSimpleField('Cidade de Origem', film.location.city) }} {{ printSimpleField('Estado de Origem', film.location.state) }} {{ printSimpleField('Lançamento', film.premiere) }} {{ printSimpleField('Qualidade', film.quality) }} {{ printSimpleField('Aúdio', film.audio_language) }} {{ printSimpleField('Legendas', film.srt_language) }} {{ printSimpleField('Produção', film.crew.producer) }} {{ printSimpleField('Roteiro', film.crew.screenplay) }} {{ printSimpleField('Elenco', film.crew.cast) }} {{ printSimpleField('Edição', film.crew.editor) }}

{%if film.links.website or film.links.wikipedia or film.links.twitter or film.links.imdb or film.links.filmow or film.links.facebook or film.links.instagram %}
{{ t('External Links') }}

{%if film.links.website %} {% endif %} {%if film.links.wikipedia %} {% endif %} {%if film.links.twitter %} {% endif %} {%if film.links.imdb %} {% endif %} {%if film.links.filmow %} {% endif %} {%if film.links.facebook %} {% endif %} {%if film.links.instagram %} {% endif %}

{% endif %}
{% if film.description %}

{{ t('Descrição')}}

{% markdown %} {{ film.description | urlize | safe | nl2br}} {% endmarkdown %} {% endif %} {% if film.categories %} {# This is a simple solution to show the categories of a film without changing the watchSchema, since we can populate by other than id #} {{ t('Categorias')}}: {% for c in categories %} {% for fc in film.categories %} {% if c.nid == fc %} {{ t(c.title)}}{% if not loop.last %}, {% endif %} {% endif %} {% endfor %} {% endfor %} {% endif %}
{% if film.tags %}

Tags: {% set list1 = film.tags.split(',') %}{% for list in list1 %}{{ list | trim}}{%if (loop.index0 < loop.length-1) %} {%endif%}{% endfor %} {% if user.adm %} {% endif %}

{% if user %} {% endif %} {% endif %}
{% if film.layout == "serie" or film.layout == "series "%}

{{ t('Episódios') }}

{% for ep in film.eps %} {% endfor %}
{{loop.index}}. {{ ep.subtitle }}
{% endif %}

{{ t('Avaliações') }}

{{ t('Avaliação média') }}: {{ (total / n) | round(1) }}

{{ n }} {{t('Avaliações')}}.

{% if user %} {{t('Sua avaliação')}}:

{% endif %}
{# Inicio links externos para resenhas, notícias ou artigos sobre a obra #} {%set referenceFlag = false %} {% for r in reference %} {% if loop.length > 0 %} {% set referenceFlag = true %} {% endif %} {% endfor %} {% if referenceFlag %}

{{ t('Ligações externas') }}

{% for r in reference %}

{{ r.title | title }}

{% endfor %}
{% endif %} {# Fim links externos para resenhas, notícias ou artigos sobre a obra #}

{{ t('Comentários')}}

{% set counter = 0 %} {% for c in comments %} {% set counter = loop.length %} {% if c.body != "" %}

{{c.creator.username}} {{c.date.getDate()}}/{{c.date.getMonth()+1}}/{{c.date.getFullYear()}}

{{c.body}}

{% if c.creator.id == user.id %}
{% endif %}

{% for s in range(0, c.stars)%} {% endfor %}

{% endif %} {% endfor %} {% if counter == 0 %}

{{ t('Ainda não há comentários para essa obra.')}}

{% endif %} {% if user %}

{% else %} {% endif %}
{% elif film.status == 'striked' %}

{{ t('Obra Indisponível')}} :'(


{{ t('A obra que você está procurando não está mais disponível pelo seguinte status:')}}

{{film.modComments.comment}}

{% else %} {% endif %} {% endblock %}