From a8702d4f5eccb1900eb2b5003c3bbc066ffc2267 Mon Sep 17 00:00:00 2001 From: Sli Date: Sun, 5 Jan 2025 16:42:26 +0100 Subject: [PATCH] Improve welcome page * Improve code readability of calendar details * Add link to AE Dev discord in useful links * Add link to github at the bottom --- .../com/components/ics-calendar-index.ts | 19 ++++++++----------- com/templates/com/news_list.jinja | 8 ++++---- core/static/core/colors.scss | 1 + core/static/core/style.scss | 4 ++++ core/templates/core/base.jinja | 3 ++- locale/fr/LC_MESSAGES/django.po | 19 ++++++++++++------- 6 files changed, 31 insertions(+), 23 deletions(-) diff --git a/com/static/bundled/com/components/ics-calendar-index.ts b/com/static/bundled/com/components/ics-calendar-index.ts index e3baddc6..11a15a32 100644 --- a/com/static/bundled/com/components/ics-calendar-index.ts +++ b/com/static/bundled/com/components/ics-calendar-index.ts @@ -77,17 +77,14 @@ export class IcsCalendar extends inheritHtmlElement("div") { const makePopupTitle = (event: EventImpl) => { const row = document.createElement("div"); - const title = document.createElement("h4"); - const time = document.createElement("span"); - - title.setAttribute("class", "event-details-row-content"); - title.textContent = event.title; - - time.setAttribute("class", "event-details-row-content"); - time.textContent = `${this.formatDate(event.start)} - ${this.formatDate(event.end)}`; - - row.appendChild(title); - row.appendChild(time); + row.innerHTML = ` +

+ ${event.title} +

+ + ${this.formatDate(event.start)} - ${this.formatDate(event.end)} + + `; return makePopupInfo( row, "fa-solid fa-calendar-days fa-xl event-detail-row-icon", diff --git a/com/templates/com/news_list.jinja b/com/templates/com/news_list.jinja index 8f20ce19..34371298 100644 --- a/com/templates/com/news_list.jinja +++ b/com/templates/com/news_list.jinja @@ -123,7 +123,10 @@