feat(core): Ajoute une barre de recherche
parent
cdc83df63e
commit
f2a2de8ec7
@ -0,0 +1,24 @@
|
||||
{% extends "../base.html" %}
|
||||
{% load wagtailcore_tags %}
|
||||
|
||||
{% block title %}Recherche{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1 class="title mt-3 mb-2">Résultats de recherche {% if search_query %} pour : <span class="text-primary">{{ search_query }}</span>{% endif %}
|
||||
{% if radioshows_results %}
|
||||
<h2 class="title text-primary">Émissions</h2>
|
||||
<div class="row">
|
||||
{% for radioshow in radioshows_results %}
|
||||
<div class="col-12 col-lg-6">{% include 'wagtail_webradio/radioshow_item.html' %}</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% if podcasts_results %}
|
||||
<h2 class="title mt-3 mb-2 text-primary">Podcasts</h2>
|
||||
<div class="row">
|
||||
{% for podcast in podcasts_results %}
|
||||
<div class="col-12 col-lg-6 podcast-item">{% include "wagtail_webradio/podcast_item.html" %}</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
@ -0,0 +1 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M10 18a7.952 7.952 0 0 0 4.897-1.688l4.396 4.396 1.414-1.414-4.396-4.396A7.952 7.952 0 0 0 18 10c0-4.411-3.589-8-8-8s-8 3.589-8 8 3.589 8 8 8zm0-14c3.309 0 6 2.691 6 6s-2.691 6-6 6-6-2.691-6-6 2.691-6 6-6z"></path></svg>
|
After Width: | Height: | Size: 313 B |
@ -0,0 +1,13 @@
|
||||
{% load wagtailcore_tags wagtailimages_tags %}
|
||||
<div class="row border-bottom py-4 position-relative">
|
||||
<div class="col-md">
|
||||
{% for tag in podcast.tags.all %}<span class="tag">{{ tag }} </span>{% endfor %}
|
||||
<h2 class="title">{{ podcast.title }}</h2>
|
||||
{{ podcast.description|richtext|truncatechars_html:150 }}
|
||||
<time class="fw-light d-block mt-4 text-secondary" datetime="{{ podcast.publish_date|date:'c' }}"><em>{{ podcast.publish_date|date:'SHORT_DATE_FORMAT' }}</em></time>
|
||||
</div>
|
||||
<div class="col-auto">
|
||||
{% image podcast.picture fill-200x200 %}
|
||||
</div>
|
||||
<a class="stretched-link" href="{% url "core:podcast_detail" podcast.slug %}"></a>
|
||||
</div>
|
Loading…
Reference in New Issue