From 9a1f8caceb31d835f1430bf0b3ff2d1f54a17641 Mon Sep 17 00:00:00 2001 From: Denys Konovalov Date: Mon, 3 Apr 2023 15:53:53 +0200 Subject: [PATCH] =?UTF-8?q?Umbau=20Terminliste:=20Filter=20anstehend/verga?= =?UTF-8?q?ngen=20(schlie=C3=9Ft=20#215)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/js/script.js | 2 +- content/german/termine/_index.md | 2 +- layouts/termine/list.html | 36 ++++++++++++++++++++------------ 3 files changed, 25 insertions(+), 15 deletions(-) diff --git a/assets/js/script.js b/assets/js/script.js index bbd77c51..636c03d6 100644 --- a/assets/js/script.js +++ b/assets/js/script.js @@ -66,7 +66,7 @@ var containerEl = document.querySelector('.filtr-container'); var filterizd; if (containerEl) { - filterizd = $('.filtr-container').filterizr({}); + filterizd = $('.filtr-container').filterizr({layout: 'sameWidth', spinner: {enabled: true}}); } //Active changer $('.filter-controls li').on('click', function () { diff --git a/content/german/termine/_index.md b/content/german/termine/_index.md index 65c14143..f15e7682 100644 --- a/content/german/termine/_index.md +++ b/content/german/termine/_index.md @@ -2,7 +2,7 @@ title: Termine draft: false bg_image: media/backgrounds/page-title.webp -description: Hier sind alle Termine für das laufende Schuljahr aufgelistet. +description: Hier sind alle Termine für das laufende Schuljahr aufgelistet. Die Liste kann nach anstehenden und vergangenen Terminen gefiltert werden. events: - date: 2022-08-25T18:29:41.000+02:00 enddate: "" diff --git a/layouts/termine/list.html b/layouts/termine/list.html index b9e05840..1e04d784 100644 --- a/layouts/termine/list.html +++ b/layouts/termine/list.html @@ -1,29 +1,39 @@ {{ define "main" }} -
+
-
    +
    +
    +
      +
    • {{ i18n "all" }}
    • +
    • Anstehend
    • +
    • Vergangen
    • +
    +
    +
    + +
      {{ range .Params.events }} -
    • +
    • {{ time.Format "2" .date}} {{ time.Format "Jan 2006" .date}} - {{ with .enddate }} -
      - bis {{ time.Format "2 Jan 2006" . }} - {{ end }} + {{ with .enddate }}
      bis {{ time.Format "2 Jan 2006" . }}{{ end }}
      -
      +

      {{ .title }}

      {{ with .location }} -
      -

      - - {{ . | markdownify }} -

      +
      +

      {{ . | markdownify }}

      {{ end }}