2022-08-16 18:13:00 +02:00
|
|
|
{% extends 'base.html' %}
|
|
|
|
|
|
|
|
{% block header %}
|
|
|
|
<h1>{% block title %}Résultats de la recherche "{{ query }}"{% endblock %}</h1>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
{% if partitions|length != 0 %}
|
2022-08-17 09:44:31 +02:00
|
|
|
<h4>Résultats dans la bibliothèque locale</h4>
|
2022-08-16 18:13:00 +02:00
|
|
|
<div id="partitions-grid">
|
|
|
|
{% for partition in partitions %}
|
|
|
|
<a href="/partition/{{ partition['uuid'] }}">
|
|
|
|
<div class="partition" id="partition-{{ partition['uuid'] }}">
|
|
|
|
<img class="partition-thumbnail" src="/static/thumbnails/{{ partition['uuid'] }}.jpg">
|
|
|
|
<div class="partition-description">
|
|
|
|
<div class="partition-name">{{ partition["name"] }}</div>
|
|
|
|
<div class="partition-author">{{ partition["author"] }}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2022-08-17 09:44:31 +02:00
|
|
|
{% endif %}
|
|
|
|
{% if google_results|length != 0 %}
|
|
|
|
<h4>Résultats de la recherche en ligne</h4>
|
|
|
|
<div id="partitions-grid">
|
|
|
|
{% for partition in google_results %}
|
|
|
|
<a href="/partition/search/{{ partition['uuid'] }}">
|
|
|
|
<div class="partition" id="partition-{{ partition['uuid'] }}">
|
|
|
|
<img class="partition-thumbnail" src="/static/search-thumbnails/{{ partition['uuid'] }}.jpg">
|
|
|
|
<div class="partition-description">
|
|
|
|
<div class="partition-name">{{ partition["name"] }}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2022-08-16 18:13:00 +02:00
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|