diff options
| author | Raphael Kabo <raphaelkabo@hey.com> | 2024-05-27 09:56:57 +0100 | 
|---|---|---|
| committer | Raphael Kabo <raphaelkabo@hey.com> | 2024-05-27 09:56:57 +0100 | 
| commit | 2be06712a8e258d2ee2b7b910af7fbc6150a3c34 (patch) | |
| tree | 38c8073045f1511b6c8ae1c658130093d3d884e7 /views/publicEventList.handlebars | |
| parent | 6d374b13854d0f60928e826b9873b1d74143ff96 (diff) | |
Improve event lists
Diffstat (limited to 'views/publicEventList.handlebars')
| -rw-r--r-- | views/publicEventList.handlebars | 41 | 
1 files changed, 5 insertions, 36 deletions
diff --git a/views/publicEventList.handlebars b/views/publicEventList.handlebars index 8dccaaa..b8cacd0 100644 --- a/views/publicEventList.handlebars +++ b/views/publicEventList.handlebars @@ -21,44 +21,13 @@  <div x-show="currentTab === 'events'">      <div class="card mt-4 mb-4" id="upcomingEvents"> -    <h5 class="card-header">Upcoming events</h5> -    <div class="list-group list-group-flush"> -    {{#if upcomingEvents}} -        {{#each upcomingEvents}} -        <a href="/{{this.id}}" class="list-group-item list-group-item-action"> -            <i class="fas fa-fw fa-calendar-day"></i> -            <strong>{{this.name}}</strong> -            {{#if this.location}}<span class="ml-2 text-muted"><i class="fas fa-map-marker-alt"></i> {{this.location}}</span>{{/if}} -            <span class="ml-2 text-muted">{{this.displayDate}}</span> -            {{#if this.eventGroup}} -            <span class="badge badge-secondary ml-2">{{this.eventGroup.name}}</span> -            {{/if}} -        </a> -        {{/each}} -    {{else}} -        <div class="list-group-item">No events!</div> -    {{/if}} -    </div> +        <h5 class="card-header">Upcoming events</h5> +        {{> eventList upcomingEvents }}      </div>      <div class="card mt-4 mb-4" id="pastEvents"> -    <h5 class="card-header">Past events</h5> -    <div class="list-group list-group-flush"> -    {{#if pastEvents}} -        {{#each pastEvents}} -        <a href="/{{this.id}}" class="list-group-item list-group-item-action"> -            <i class="fas fa-fw fa-calendar-day"></i> -            <strong>{{this.name}}</strong> -            <span class="ml-2 text-muted">{{this.displayDate}}</span> -            {{#if this.eventGroup}} -            <span class="badge badge-secondary ml-2">{{this.eventGroup.name}}</span> -            {{/if}} -        </a> -        {{/each}} -    {{else}} -        <div class="list-group-item">No events!</div> -    {{/if}} -    </div> +        <h5 class="card-header">Past events</h5> +        {{> eventList pastEvents }}      </div>  </div> @@ -79,4 +48,4 @@      {{/if}}  </div> -</main>
\ No newline at end of file +</main>  | 
