home.html 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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. <section class="work">
  32. <h2>
  33. {% if title == "Início" %}
  34. Adicionados recentemente
  35. {% elseif tag %}
  36. Tag: {{tag}}
  37. {% endif %}
  38. </h2>
  39. {% if watch == "" %}
  40. <p><br>Nada encontrado com a tag: {{ tag }}.</p>
  41. {% endif %}
  42. <div class="grid">
  43. <p> {{ alltags }} </p>
  44. <ul class="entries">
  45. {% for w in watch %}
  46. {% if w.featured == 'true' %}
  47. <li class="col-md-3">
  48. <a role="button" data-toggle="modal" style="border-bottom: 0px solid;" data-toggle="modal" data-target="#assistir{{ loop.index }}">
  49. <img src="{{ w.thumb480 }}" title="{{ w.title }}{% if w.subtitle %} - {{ w.subtitle }}{% endif %} ({{ w.year }})" class="fadeCatalogo" onload="this.style.opacity='1'" style="img;"/>
  50. <!--<h3>{{ w.title }}</h3>-->
  51. </a>
  52. </li>
  53. <div class="modal" id="assistir{{ loop.index }}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel{{ loop.index }}">
  54. <div class="modal-dialog" role="document">
  55. <div class="modal-content">
  56. <div class="modal-header">
  57. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><i class="fa fa-times-circle exitTimes"></i></button>
  58. <a href="/assistir/{{ w.permalink }}"><button type="button" class="splash-play"><img src="/img/play.png" alt="Play"></button></a>
  59. <!-- <h4 class="modal-title" id="myModalLabel{{ loop.index }}">{{ w.title }} {% if w.subtitle %} - {{ w.subtitle }} {% else %} {% endif %}</h4> -->
  60. <a href="/assistir/{{ w.permalink }}"><div class="splash" style="background-image: url('{{ w.imgbg }}');">
  61. </div></a>
  62. </div>
  63. <div class="modal-body">
  64. <h2> {{ w.title }}</h2>
  65. <h4>
  66. {{ w.subtitle }}
  67. {% if w.subtitle %} &middot; {%endif%} {{w.year}}
  68. {% if w.classind %} &middot; <span class="classind">{{ w.classind }}</span>{% endif %}
  69. {% if w.duration %} &middot; {{ w.duration }} {% endif %}
  70. </h4>
  71. <ul class="nav nav-pills text-right">
  72. <li class="active"><a data-toggle="pill" href="#resumo{{ loop.index }}">Resumo</a></li>
  73. <!-- <li><a data-toggle="pill" href="#creditos{{ loop.index }}">Créditos</a></li> -->
  74. <!-- <li><a data-toggle="pill" href="#links{{ loop.index }}">Links</a></li> -->
  75. </ul>
  76. <div class="tab-content">
  77. <div id="resumo{{ loop.index }}" class="tab-pane fade in active">
  78. <!-- <h4>Resumo</h4> -->
  79. <div class="sinopse">{{ w.sinopse }}</div>
  80. <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>
  81. </div>
  82. <!-- <div id="creditos{{ loop.index }}" class="tab-pane fade">
  83. <h4>Créditos e Elenco</h4>
  84. <div class="sinopse">
  85. </div>
  86. </div> -->
  87. <!-- <div id="links{{ loop.index }}" class="tab-pane fade">
  88. <h4>Links</h4>
  89. {% if w.license != 'false' %}<div class="sinopse">Licença: {{ w.license }} </div>{%endif%}
  90. <div class="sinopse">
  91. </div>
  92. </div> -->
  93. </div>
  94. </div>
  95. <div class="modal-footer">
  96. {% 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 %}
  97. <button type="button" class="btn btn-default" data-dismiss="modal">Fechar <i class="fa fa-times-circle"></i></button>
  98. <a href="/assistir/{{ w.permalink }}"><button type="button" class="btn btn-success">Assistir <i class="fa fa-play-circle"></i></button></a>
  99. </div>
  100. </div>
  101. </div>
  102. </div>
  103. {% endif %}
  104. {% endfor %}
  105. </ul>
  106. <div class="centerBlock">
  107. <!--<a class="btn" href="#">Ver todo o conteúdo</a>-->
  108. </div>
  109. </section>
  110. {% endblock %}