mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-14 14:24:24 +00:00
sort events by date (DESC)
This commit is contained in:
parent
42c9a24472
commit
c235fb75a7
@ -294,6 +294,7 @@ class EventController extends Controller
|
||||
JOIN participation.event event
|
||||
WHERE participation.person = :person_id
|
||||
AND event.circle IN (:reachable_circles)
|
||||
ORDER BY event.date DESC
|
||||
")
|
||||
->setParameters(array(
|
||||
':person_id' => $person_id,
|
||||
|
@ -30,10 +30,6 @@
|
||||
<th class="chill-red">{{ 'Name'|trans }}</th>
|
||||
<th class="chill-green">{{ 'Date'|trans }}</th>
|
||||
<th class="chill-orange">{{ 'Event type'|trans }}</th>
|
||||
{#
|
||||
<th class="chill-green">{{ 'Circle'|trans }}</th>
|
||||
<th class="chill-green">{{ 'Moderator'|trans }}</th>
|
||||
#}
|
||||
<th class="chill-red">{{ 'Role'|trans }}</th>
|
||||
<th class="chill-green">{{ 'Status'|trans }}</th>
|
||||
<th> </th>
|
||||
@ -49,10 +45,6 @@
|
||||
</td>
|
||||
<td>{{ participation.event.date|localizeddate('long', 'short') }}</td>
|
||||
<td>{{ participation.event.type.name|localize_translatable_string }}</td>
|
||||
{#
|
||||
<td>{{ participation.event.circle.name|localize_translatable_string }}</td>
|
||||
<td>{{ participation.event.moderator|trans|default('-') }}</td>
|
||||
#}
|
||||
<td>{{ participation.role.name|localize_translatable_string }}</td>
|
||||
<td>{{ participation.status.name|localize_translatable_string }}</td>
|
||||
<td>
|
||||
@ -69,8 +61,7 @@
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if is_granted('CHILL_EVENT_PARTICIPATION_UPDATE', participation) %}
|
||||
<a href="{{ path('chill_event_participation_edit', { 'participation_id' : participation.id } ) }}"
|
||||
class="sc-button bt-edit">
|
||||
<a href="{{ path('chill_event_participation_edit', { 'participation_id' : participation.id } ) }}" class="sc-button bt-edit">
|
||||
{{ 'Edit'|trans }}
|
||||
</a>
|
||||
{% endif %}
|
||||
@ -88,6 +79,7 @@
|
||||
{% endif %}
|
||||
|
||||
|
||||
{#
|
||||
<pre>
|
||||
/!\ dev notes
|
||||
=============
|
||||
@ -98,7 +90,6 @@
|
||||
</pre>
|
||||
|
||||
{{ dump() }}
|
||||
{#
|
||||
#}
|
||||
|
||||
{% endblock %}
|
Loading…
x
Reference in New Issue
Block a user