summaryrefslogtreecommitdiff
path: root/views/partials
diff options
context:
space:
mode:
authorRaphael Kabo <raphaelkabo@hey.com>2024-05-27 09:56:57 +0100
committerRaphael Kabo <raphaelkabo@hey.com>2024-05-27 09:56:57 +0100
commit2be06712a8e258d2ee2b7b910af7fbc6150a3c34 (patch)
tree38c8073045f1511b6c8ae1c658130093d3d884e7 /views/partials
parent6d374b13854d0f60928e826b9873b1d74143ff96 (diff)
Improve event lists
Diffstat (limited to 'views/partials')
-rw-r--r--views/partials/eventList.handlebars22
1 files changed, 22 insertions, 0 deletions
diff --git a/views/partials/eventList.handlebars b/views/partials/eventList.handlebars
new file mode 100644
index 0000000..6c8e7a4
--- /dev/null
+++ b/views/partials/eventList.handlebars
@@ -0,0 +1,22 @@
+<div class="list-group list-group-flush">
+{{#if this}}
+ {{#each this}}
+ <div class="list-group-item bg-light">
+ <h5 class="mb-0">{{this.title}}</h5>
+ </div>
+ {{#each this.events}}
+ <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}}
+ {{/each}}
+{{else}}
+ <div class="list-group-item">No events!</div>
+{{/if}}
+</div>