diff options
author | Raphael <mail@raphaelkabo.com> | 2024-05-27 10:18:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-27 10:18:44 +0100 |
commit | 935bb9dec49f2a18bb839915dbc1ff695f8767c5 (patch) | |
tree | 2001ee74ee563881c61e882bf828ee22d2c7a8c3 /views/partials/eventList.handlebars | |
parent | 6d374b13854d0f60928e826b9873b1d74143ff96 (diff) | |
parent | cb51be7a4bd00892cff704d49f95a9ab95a9e33e (diff) |
Merge pull request #154 from lowercasename/rk/improve-event-lists
Improve event lists
Diffstat (limited to 'views/partials/eventList.handlebars')
-rw-r--r-- | views/partials/eventList.handlebars | 22 |
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> |