On améliore le rendu des recherches
This commit is contained in:
parent
f50c9b47ac
commit
ce83d64b1a
@ -298,7 +298,7 @@ article#filters {
|
||||
}
|
||||
}
|
||||
|
||||
.helptext, .location-search {
|
||||
.helptext, .subentry-search {
|
||||
font-size: 80%;
|
||||
margin-top: -0.7em;
|
||||
}
|
||||
|
@ -4,6 +4,11 @@
|
||||
|
||||
{% load utils_extra %}
|
||||
|
||||
{% load cat_extra %}
|
||||
{% block entete_header %}
|
||||
{% css_categories %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<article class="search">
|
||||
@ -27,14 +32,8 @@
|
||||
<p>{{ paginator_filter.paginator.count }} événement{{paginator_filter.object_list.count | pluralize }} correspond{{paginator_filter.object_list.count | pluralize:"ent" }} à la recherche.</p>
|
||||
<ul>
|
||||
{% for obj in paginator_filter %}
|
||||
<li><p>{% include "agenda_culturel/date-times-inc.html" with event=obj %}
|
||||
: <a href="{{ obj.get_absolute_url }}">
|
||||
{% if obj.title_hl %}{{ obj.title_hl | safe }}{% else %}{{ obj.title }}{% endif %}</a></p>
|
||||
<p class="location-search">{% picto_from_name "map-pin" %}
|
||||
{% if obj.location_hl %}{{ obj.location_hl | safe }}{% else %}{{ obj.location }}{% endif %}</p>
|
||||
<div class="description">
|
||||
{% if obj.description_hl %}{{ obj.description_hl | safe }}{% else %}{{ obj.description }}{% endif %}
|
||||
</div>
|
||||
<li>
|
||||
{% include "agenda_culturel/single-event/event-in-flat-list-inc.html" with event=obj %}
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
@ -0,0 +1,21 @@
|
||||
{% load utils_extra %}
|
||||
{% load cat_extra %}
|
||||
|
||||
<p>{{ event.category | small_cat }}
|
||||
<a href="{{ event.get_absolute_url }}">
|
||||
{% if event.title_hl %}{{ event.title_hl | safe }}{% else %}{{ event.title }}{% endif %}</a></p>
|
||||
<p class="subentry-search">{% picto_from_name "calendar" %}
|
||||
{% if event.end_day %}du{% else %}le{% endif %}
|
||||
{% include "agenda_culturel/date-times-inc.html" with event=event %}
|
||||
{% picto_from_name "map-pin" %}
|
||||
{% if event.location_hl %}{{ event.location_hl | safe }}{% else %}{{ event.location }}{% endif %}</p>
|
||||
<p class="subentry-search">
|
||||
{% picto_from_name "tag" %}
|
||||
{% for tag in event.tags %}
|
||||
<a href="{% url 'view_tag' tag %}">{{ tag }}</a>
|
||||
{% if not forloop.last %}, {% endif %}
|
||||
{% endfor %}
|
||||
</p>
|
||||
<div class="description">
|
||||
{% if event.description_hl %}{{ event.description_hl | safe }}{% else %}{{ event.description }}{% endif %}
|
||||
</div>
|
Loading…
Reference in New Issue
Block a user