mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-23 08:03:49 +00:00
Add a mention on next calendars on search results
This commit is contained in:
@@ -149,6 +149,24 @@
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
{% set calendars = [] -%}
|
||||
{% for c in acp.nextCalendarsForPerson(person, 10) -%}
|
||||
{% if is_granted('CHILL_CALENDAR_CALENDAR_SEE', c) -%}
|
||||
{% set calendars = calendars|merge([c]) -%}
|
||||
{% endif -%}
|
||||
{% endfor -%}
|
||||
{% if calendars|length > 0 %}
|
||||
<div class="wl-row">
|
||||
<div class="wl-col title">
|
||||
<h3>{{ 'chill_calendar.Next calendars'|trans }}</h3>
|
||||
</div>
|
||||
<div class="wl-col list">
|
||||
{% for c in calendars %}<span>{{ c.startDate|format_datetime('long', 'short') }}</span>{% if not loop.last %}, {% endif %}{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% if acp.step == 'CLOSED' and acp.closingMotive is not null %}
|
||||
<div class="wl-row">
|
||||
<div class="wl-col title">
|
||||
|
Reference in New Issue
Block a user