From fd4884c47cbfd10564a86692c80b03fc09762b91 Mon Sep 17 00:00:00 2001 From: Stefan Schlott Date: Mon, 9 Sep 2013 19:27:08 +0200 Subject: [PATCH] Versuch: Kalenderposition --- content/index.html | 68 ++++++++++++++++++++++++---------------------- 1 file changed, 35 insertions(+), 33 deletions(-) diff --git a/content/index.html b/content/index.html index 1e798b2c..af3757fb 100644 --- a/content/index.html +++ b/content/index.html @@ -7,7 +7,7 @@ feed: title: 'CCCS - Neueste Artikel' -----
-
+
CCCS-Logo

Herzlich willkommen beim CCC Stuttgart

@@ -27,38 +27,6 @@ feed: Artikel und Notizen. Wenn Du diese automatisch beziehen möchtest, kannst Du sie per Atom-Feed abonnieren.

-
-
-
- <% upcomingEvents = get_events().select { |e| e[:startdate].to_datetime > DateTime.now } - if (upcomingEvents.size>0) - upcomingEvents.sort! { |a,b| a[:startdate].to_datetime <=> b[:startdate].to_datetime } - %> -
- -
- <% end %> - <% upcomingRegularsTable = get_regulars_tables().select { |e| e[:startdate].to_datetime > DateTime.now } - if (upcomingRegularsTable.size>0) - upcomingRegularsTable.sort! { |a,b| a[:startdate].to_datetime <=> b[:startdate].to_datetime } - %> -
- -
- <% end %> -

Kalender

@@ -70,6 +38,40 @@ feed: <% end %>

+
+ <% upcomingEvents = get_events().select { |e| e[:startdate].to_datetime > DateTime.now } + if (upcomingEvents.size>0) + upcomingEvents.sort! { |a,b| a[:startdate].to_datetime <=> b[:startdate].to_datetime } + %> +
+
+ +
+
+ <% end %> + <% upcomingRegularsTable = get_regulars_tables().select { |e| e[:startdate].to_datetime > DateTime.now } + if (upcomingRegularsTable.size>0) + upcomingRegularsTable.sort! { |a,b| a[:startdate].to_datetime <=> b[:startdate].to_datetime } + %> +
+
+ +
+
+ <% end %> +