inicio.html 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. {% if title == "Início" %}
  2. {% set title = "Início" %}
  3. {% elseif title == "Tag" %}
  4. {% set title = "Tag: " + tag %}
  5. {% endif %}
  6. {% extends 'layout.html' %}
  7. {% block body %}
  8. <div class="container-fluid">
  9. {% if messages.success %}
  10. <div role="alert" class="alert alert-success">
  11. {% for success in messages.success %}
  12. <div>{{ success.msg }}</div>
  13. {% endfor %}
  14. </div>
  15. {% endif %}
  16. {% if messages.error %}
  17. <div role="alert" class="alert alert-danger">
  18. {% for error in messages.error %}
  19. <div>{{ error.msg }}</div>
  20. {% endfor %}
  21. </div>
  22. {% endif %}
  23. {% if messages.info %}
  24. <div role="alert" class="alert alert-info">
  25. {% for info in messages.info %}
  26. <div>{{ info.msg }}</div>
  27. {% endfor %}
  28. </div>
  29. {% endif %}
  30. </div>
  31. {% macro printWatches(title, top) -%}
  32. <h3>{{ title }} </h3>
  33. <div class="grid">
  34. <p> {{ alltags }} </p>
  35. <ul class="entries">
  36. {% for w in watch %}
  37. {% if w.featured == 'true' and w.top == top %}
  38. <li class="col-md-3">
  39. <a role="button" data-toggle="modal" style="border-bottom: 0px solid;" data-toggle="modal" data-target="#assistir{{ loop.index }}">
  40. <img src="{{ w.thumb480 }}" title="{{ w.title }}{% if w.subtitle %} - {{ w.subtitle }}{% endif %} ({{ w.year }})" class="fadeCatalogo" onload="this.style.opacity='1'" style="img;"/>
  41. <!--<h3>{{ w.title }}</h3>-->
  42. </a>
  43. </li>
  44. <div class="modal" id="assistir{{ loop.index }}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel{{ loop.index }}">
  45. <div class="modal-dialog" role="document">
  46. <div class="modal-content">
  47. <div class="modal-header">
  48. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><i class="fa fa-times-circle exitTimes"></i></button>
  49. <a href="/assistir/{{ w.permalink }}"><button type="button" class="splash-play"><img src="/img/play.png" alt="Play"></button></a>
  50. <!-- <h4 class="modal-title" id="myModalLabel{{ loop.index }}">{{ w.title }} {% if w.subtitle %} - {{ w.subtitle }} {% else %} {% endif %}</h4> -->
  51. <a href="/assistir/{{ w.permalink }}"><div class="splash" style="background-image: url('{{ w.imgbg }}');">
  52. </div></a>
  53. </div>
  54. <div class="modal-body">
  55. <h2> {{ w.title }}</h2>
  56. <h4>
  57. {{ w.subtitle }}
  58. {% if w.subtitle %} &middot; {%endif%} {{w.year}}
  59. {% if w.classind %} &middot; <span class="classind">{{ w.classind }}</span>{% endif %}
  60. {% if w.duration %} &middot; {{ w.duration }} {% endif %}
  61. </h4>
  62. <ul class="nav nav-pills text-right">
  63. <li class="active"><a data-toggle="pill" href="#resumo{{ loop.index }}">Resumo</a></li>
  64. <!-- <li><a data-toggle="pill" href="#creditos{{ loop.index }}">Créditos</a></li> -->
  65. <!-- <li><a data-toggle="pill" href="#links{{ loop.index }}">Links</a></li> -->
  66. </ul>
  67. <div class="tab-content">
  68. <div id="resumo{{ loop.index }}" class="tab-pane fade in active">
  69. <!-- <h4>Resumo</h4> -->
  70. <div class="sinopse">{{ w.sinopse }}</div>
  71. <h4> Tags: {% set list1 = w.tags.split(',') %}{% for list in list1 %}<a href="/t/{{ list | trim}}">{{ list | trim}}</a>{%if loop.index0 < loop.length-1 %}, {%endif%}{% endfor %}</h4>
  72. </div>
  73. <!-- <div id="creditos{{ loop.index }}" class="tab-pane fade">
  74. <h4>Créditos e Elenco</h4>
  75. <div class="sinopse">
  76. </div>
  77. </div> -->
  78. <!-- <div id="links{{ loop.index }}" class="tab-pane fade">
  79. <h4>Links</h4>
  80. {% if w.license != 'false' %}<div class="sinopse">Licença: {{ w.license }} </div>{%endif%}
  81. <div class="sinopse">
  82. </div>
  83. </div> -->
  84. </div>
  85. </div>
  86. <div class="modal-footer">
  87. {% if user.mod %}<a href="/edit/{{ w._id }}"><button type="button" class="btn btn-danger">Editar <i class="fa fa-edit"></i></button></a>{% endif %}
  88. <button type="button" class="btn btn-default" data-dismiss="modal">Fechar <i class="fa fa-times-circle"></i></button>
  89. <a href="/assistir/{{ w.permalink }}"><button type="button" class="btn btn-success">Assistir <i class="fa fa-play-circle"></i></button></a>
  90. </div>
  91. </div>
  92. </div>
  93. </div>
  94. {% endif %}
  95. {% endfor %}
  96. </ul>
  97. </div>
  98. {%- endmacro %}
  99. {% macro printTagCards(tagname) -%}
  100. <a href="/t/{{tagname}}"><div class="tagcard" style="background-image: url('/media/tags/{{tagname}}.jpg');"><p class="tagcard-text">{{ tagname | capitalize}}</p></a></div></li>
  101. {%- endmacro %}
  102. <section class="work">
  103. <div class="tagcardgrab">
  104. <div class="tagcardcontainer">
  105. {% set tagsArray = [ 'social', 'tech', 'musica', 'sci-fi', 'ativismo', 'veganismo', 'feminismo', 'educação', 'animação', 'comédia', 'religião', 'natureza'] %}
  106. <!-- Print Cards -->
  107. {% for tags in tagsArray%}
  108. {{ printTagCards(tags)}}
  109. {% endfor %}
  110. </div>
  111. </div>
  112. <br>
  113. <!-- Longas populares -->
  114. {{ printWatches('Longas Populares', 'top-l') }}
  115. <!-- Curtas populares -->
  116. {{ printWatches('Curtas Populares', 'top-c') }}
  117. <!-- Séries populares -->
  118. {{ printWatches('Séries Populares', 'top-s') }}
  119. <!-- Longas Recém Chegados -->
  120. {{ printWatches('Longas Recém Chegados', 'new-l') }}
  121. <!-- Curtas Recém Chegados -->
  122. {{ printWatches('Curtas Recém Chegados', 'new-c') }}
  123. <div class="centerBlock">
  124. <!--<a class="btn" href="#">Ver todo o conteúdo</a>-->
  125. </div>
  126. </section>
  127. {% endblock %}