Revert "Display calendar items linked to person within search results"

This reverts commit f7ea7e4dbf.
This commit is contained in:
2025-11-12 13:08:54 +01:00
parent f7ea7e4dbf
commit 869880d8f3
4 changed files with 8 additions and 73 deletions

View File

@@ -189,43 +189,7 @@
{% endfor %}
</li>
{% endif %}
{% set calendars = [] %}
{% for c in person.getNextCalendarsForPerson(10) %}
{% if is_granted('CHILL_CALENDAR_CALENDAR_SEE', c) %}
{% set calendars = calendars|merge([c]) %}
{% endif %}
{% endfor %}
{% if calendars|length > 0 %}
<div class="d-flex align-items-center justify-content-between flex-wrap gap-3 mt-3">
<h5 class="mb-0">{{ 'chill_calendar.Next calendars'|trans }}</h5>
<ul class="list-inline mb-0 d-flex flex-wrap align-items-center">
{% for c in calendars %}
<li class="list-inline-item">
{% if is_granted('CHILL_CALENDAR_CALENDAR_EDIT', c) %}
<a href="{{ chill_path_add_return_path('chill_calendar_calendar_edit', { id: c.id }) }}">
<span class="badge bg-secondary">
{{ c.startDate|format_datetime('long', 'short') }}
</span>
</a>
{% else %}
<span class="badge bg-secondary">
{{ c.startDate|format_datetime('long', 'short') }}
</span>
{% endif %}
</li>
{% endfor %}
</ul>
{% if is_granted('CHILL_CALENDAR_CALENDAR_SEE', person) %}
<a href="{{ chill_path_add_return_path('chill_calendar_calendar_list_by_person', {'id': person.id}) }}" class="calendar-list__global"><i class="fa fa-list"></i></a>
{% endif %}
</div>
{% endif %}
</ul>
</div>
<div class="item-col">
<ul class="record_actions">
{% if options['customButtons']['before'] is defined %}
{{ options['customButtons']['before'] }}