From 0ec1f76d5e4937569cb92e1aedd6ff27bc5df0b4 Mon Sep 17 00:00:00 2001 From: Lars Henrik Mai Date: Tue, 18 Nov 2014 23:36:26 +0100 Subject: week calendar powered by OC json --- source/index.html.haml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'source') diff --git a/source/index.html.haml b/source/index.html.haml index f05a832..abd9728 100644 --- a/source/index.html.haml +++ b/source/index.html.haml @@ -20,13 +20,15 @@ title: sublab - Ein Hackerspace in Leipzig %p CryptoCon14 - 22. bis 25. Mai 2014 .row - - %w(Montag Dienstag Mittwoch Donnerstag Freitag Samstag Sonntag).each_with_index do |dow, i| + - current_week.each_with_index do |date, i| - dow_classes = ["columns", "small-12", "medium-4", "large-1", "dow-columns"] - dow_classes << "end" if i == 6 %div{class: dow_classes} - %h5= dow + %h5= date.strftime("%A") %ul - %li= lorem.words(3) + - events_on(date).each do |ev| + %li + = "%s: %s" % [ev.start_time, ev.summary] .row .columns -- cgit v1.2.1