From 4d291fed17de95d32ad3870e515d8d9c5b8fe13f Mon Sep 17 00:00:00 2001 From: Christian Franke Date: Thu, 8 Dec 2011 00:49:56 +0100 Subject: add calendar menu item --- index.py | 4 ++++ static/app_calendar.png | Bin 0 -> 2848 bytes templates/calendar.html | 20 ++++++++++++++++++++ templates/select.html | 2 ++ 4 files changed, 26 insertions(+) create mode 100644 static/app_calendar.png create mode 100644 templates/calendar.html diff --git a/index.py b/index.py index 6b68057..0b38f95 100755 --- a/index.py +++ b/index.py @@ -55,6 +55,10 @@ class SubdapSite(object): def cfg8021x(s, username = "username"): return render(errors = {}, username = username) + @expose('calendar.html') + def calendar(s): + return render(errors = {}) + def login_perform(s, username, password): dn = ldapf("cn=%s,ou=people,dc=sublab,dc=org", [username]) try: diff --git a/static/app_calendar.png b/static/app_calendar.png new file mode 100644 index 0000000..81791af Binary files /dev/null and b/static/app_calendar.png differ diff --git a/templates/calendar.html b/templates/calendar.html new file mode 100644 index 0000000..a57a25f --- /dev/null +++ b/templates/calendar.html @@ -0,0 +1,20 @@ + + + + + + login + + +
+

sublab.org calendar

+

The sublab calendar talks caldav. It is accessable at
+ https://sublab.org:5232/mittagessen/a
+ with your usual credentials

+
+
+ diff --git a/templates/select.html b/templates/select.html index 5132cdc..93c739a 100644 --- a/templates/select.html +++ b/templates/select.html @@ -20,6 +20,8 @@ Hi ${user['cn']}!

wiki sublab.org wiki

+

+ calendar Calendar

wlan 802.1X template

-- cgit v1.2.1