film.html 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. {% set title = film.title %}
  2. {% block opengraph %}
  3. <meta name="description" content='{{ film.sinopse }}'>
  4. <meta name="keywords" content="{{film.tags}} - libreflix" />
  5. <meta property="og:image" content="https://libreflix.org/{{ film.thumb480 }}" />
  6. <meta property="og:type" content="video.movie" />
  7. <meta property="og:url" content="https://libreflix.org/i/{{ film.permalink }}" />
  8. <meta property="og:title" content="'{{title}} - Libreflix" />
  9. <meta property="og:video" content="https://libreflix.org/assistir/{{ film.permalink }}" />
  10. <meta property="og:description" content="{{ film.sinopse }}" />
  11. <meta property="og:url" content="https://libreflix.org/assistir/{{ film.permalink}}" />
  12. <meta property="og:site_name" content="Libreflix" />
  13. <!-- twitter metatags-->
  14. <meta name="twitter:card" content="summary_large_image">
  15. <meta name="twitter:title" content="{{title}} - Libreflix">
  16. <meta name="twitter:description" content="{{ film.sinopse }}">
  17. <meta name="twitter:image" content="https://libreflix.org/{{ film.thumb480 }}">
  18. {% endblock %}
  19. {% extends 'layout.html' %}
  20. {% block body %}
  21. <div class="container-fluid">
  22. {% if messages.success %}
  23. <div role="alert" class="alert alert-success">
  24. {% for success in messages.success %}
  25. <div>{{ success.msg }}</div>
  26. {% endfor %}
  27. </div>
  28. {% endif %}
  29. {% if messages.error %}
  30. <div role="alert" class="alert alert-danger">
  31. {% for error in messages.error %}
  32. <div>{{ error.msg }}</div>
  33. {% endfor %}
  34. </div>
  35. {% endif %}
  36. {% if messages.info %}
  37. <div role="alert" class="alert alert-info">
  38. {% for info in messages.info %}
  39. <div>{{ info.msg }}</div>
  40. {% endfor %}
  41. </div>
  42. {% endif %}
  43. </div>
  44. <div class="film_banner" style="background: url('{{ film.imgbg }}') no-repeat center center;">
  45. <a href="/assistir/{{ film.permalink }}"><button type="button" class="banner-play"><img src="/img/play.png" alt="Play"></button></a>
  46. </div>
  47. <div class="container-fluid">
  48. <div class="row film_content">
  49. <div class="col-md-1">
  50. </div>
  51. <div class="col-md-4">
  52. <img alt="{{ film.title }}({{ film.year }})" src="{{ film.thumb480 }}" class="film_pic" />
  53. </div>
  54. <div class="col-md-6 film_content_left">
  55. <h2>{{ film.title }} ({{ film.year }})</h2>
  56. <h4>
  57. {{ film.subtitle }}
  58. {% if film.subtitle %} &middot; {%endif%} {{film.year}}
  59. {% if film.classind %} &middot; <span class="classind">{{ film.classind }}</span>{% endif %}
  60. {% if film.duration %} &middot; {{ film.duration }} {% endif %}
  61. </h4>
  62. <p>
  63. {{ film.sinopse }}
  64. </p>
  65. {% if user.mod %}<a href="/edit/{{ film._id }}"><button type="button" class="btn btn-danger">Editar <i class="fa fa-edit"></i></button></a>{% endif %}
  66. <div class="btn-group">
  67. <button class="btn btn-default" onclick="location.href='/assistir/{{ film.permalink }}'">
  68. <i class="fa fa-play-circle"></i> Assistir
  69. </button>
  70. <!-- <button data-toggle="dropdown" class="btn btn-default dropdown-toggle">
  71. <span class="caret"></span>
  72. </button>
  73. <ul class="dropdown-menu">
  74. <li>
  75. <a href=""> Baixar <i class="fa fa-download"></i></a>
  76. </li>
  77. <li class="disabled">
  78. <a href="">Baixar <i class="fa fa-download"></i></a>
  79. </li>
  80. </ul> -->
  81. </div>
  82. </div>
  83. <div class="col-md-1">
  84. </div>
  85. </div>
  86. <br><br>
  87. <div class="row">
  88. <div class="col-md-1">
  89. </div>
  90. <div class="col-md-3">
  91. <p>
  92. <ul class="list-unstyled">
  93. {% macro printSimpleField(detail, content) %}
  94. {% if content %}
  95. <li><b>{{ detail }}</b></li>
  96. <li>{{ content }}</li>
  97. <br>
  98. {% endif %}
  99. {% endmacro %}
  100. {{ printSimpleField('Título Original:', film.original_title) }}
  101. {{ printSimpleField('Direção:', film.crew.director) }}
  102. {{ printSimpleField('País de Origem:', film.location.country) }}
  103. {{ printSimpleField('Cidade de Origem:', film.location.city) }}
  104. {{ printSimpleField('Estado de Origem:', film.location.state) }}
  105. {{ printSimpleField('Lançamento:', film.premiere) }}
  106. {{ printSimpleField('Qualidade:', film.quality) }}
  107. {{ printSimpleField('Aúdio:', film.audio_language) }}
  108. {{ printSimpleField('Legendas:', film.srt_language) }}
  109. {{ printSimpleField('Produção:', film.crew.producer) }}
  110. {{ printSimpleField('Roteiro:', film.crew.screenplay) }}
  111. {{ printSimpleField('Elenco:', film.crew.cast) }}
  112. {{ printSimpleField('Edição:', film.crew.editor) }}
  113. {% if film.criador %}
  114. <li><b>Enviador por:</b></li>
  115. <li>
  116. {% if film.criador.name %}<a href="/u/{{ film.criador.username }}">{{ film.criador.name }}</a>
  117. {% else %}<a href="/u/{{ film.criador.username }}">{{ film.criador.username }}</a> {% endif %}
  118. </li>
  119. <br>
  120. {% endif %}
  121. </ul>
  122. </p>
  123. </div>
  124. <div class="col-md-7">
  125. {% if film.description %}
  126. <h3>Descrição</h3>
  127. {% markdown %}
  128. {{ film.description | urlize | safe}}
  129. {% endmarkdown %}
  130. {% endif %}
  131. <!-- <h3>Comentários</h3> -->
  132. <h4> Tags: {% set list1 = film.tags.split(',') %}{% for list in list1 %}<a href="/t/{{ list | trim}}">{{ list | trim}}</a>{%if loop.index0 < loop.length-1 %}, {%endif%}{% endfor %}</h4>
  133. </div>
  134. <div class="col-md-1">
  135. </div>
  136. </div>
  137. </div>
  138. {% endblock %}