Initial commit
This commit is contained in:
commit
7523a19d1f
40 changed files with 3984 additions and 0 deletions
18
templates/search/include/movie.html
Normal file
18
templates/search/include/movie.html
Normal file
|
@ -0,0 +1,18 @@
|
|||
{% macro movie_results(results) -%}
|
||||
<div class="d-flex flex-wrap">
|
||||
{%for result in results %}
|
||||
<form action="search/details" method="POST">
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
|
||||
<input type="hidden" name="type" value="movie"/>
|
||||
<input type="hidden" name="data" value="{{result|tojson|urlencode}}"/>
|
||||
<a style="cursor: pointer" onclick="this.parentElement.submit()">
|
||||
{% for poster in result.images|selectattr('coverType','eq','poster') %}
|
||||
<img class="img-fluid poster" src="{{poster.url}}" title="{{result.title}}">
|
||||
{% else %}
|
||||
<img class="img-fluid poster" src="{{url_for('placeholder',width=333, height=500, text=result.title, wrap = 15)}}" title="{{result.title}}" />
|
||||
{% endfor %}
|
||||
</a>
|
||||
</form>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endmacro %}
|
Loading…
Add table
Add a link
Reference in a new issue