feat: show slightly more information in event list view

instead of event title and organizer, we now also show place and date
This commit is contained in:
2025-06-02 00:37:47 +02:00
parent 42fd94e5ac
commit 271bf84467
4 changed files with 21 additions and 9 deletions

View File

@@ -59,13 +59,18 @@ function loadEvents(org_id, evs) {
for (const ev of events) {
const card = document.createElement("div");
card.className = "event-card filled";
//card.innerHTML = `
// <span>${ev.title}</span>`
// Do odkomentowania kiedy widok podglądu wydarzeń będzie gotowy
let formattedDate = new Intl.DateTimeFormat('en-US', {
weekday: 'long',
year: 'numeric',
month: 'long',
day: 'numeric' // "1"
}).format(new Date(ev.eventDate));
card.innerHTML = `
<span>
<a href="/view.html?event=${ev.eventId}" style="color: #2898BD">${ev.title}</a>
<p style="margin: 0">${ev.organisation}</p>
<p style="margin: 0">👥 ${ev.organisation} | 📍 ${ev.location} | 📅 ${formattedDate}</p>
</span>`;
if (org_id == ev.organisationId) {
card.innerHTML += `