summaryrefslogtreecommitdiff
path: root/source/index.html.haml
diff options
context:
space:
mode:
authorLars Henrik Mai <lars.mai@kontinui.de>2014-11-18 23:36:26 +0100
committerLars Henrik Mai <lars.mai@kontinui.de>2014-11-18 23:36:26 +0100
commit0ec1f76d5e4937569cb92e1aedd6ff27bc5df0b4 (patch)
tree9e5a70251cf924d77be0c77f0c10dcba17bb3009 /source/index.html.haml
parent3562a4142ad8a8f8b2b3a1a10538acfbf146d462 (diff)
week calendar powered by OC json
Diffstat (limited to 'source/index.html.haml')
-rw-r--r--source/index.html.haml8
1 files changed, 5 insertions, 3 deletions
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