summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Franke <nobody@nowhere.ws>2011-12-08 00:49:56 +0100
committerequinox <equinox@diac24.net>2011-12-08 01:41:48 +0100
commit4d291fed17de95d32ad3870e515d8d9c5b8fe13f (patch)
treed6d9fe6d67a6ab6f832f7db9c3e6e04d1fb29ca3
parentff8df62dfad7aa990254914400fe57a3bebbe163 (diff)
add calendar menu item
-rwxr-xr-xindex.py4
-rw-r--r--static/app_calendar.pngbin0 -> 2848 bytes
-rw-r--r--templates/calendar.html20
-rw-r--r--templates/select.html2
4 files changed, 26 insertions, 0 deletions
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
--- /dev/null
+++ b/static/app_calendar.png
Binary files 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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html>
+<html xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:py="http://genshi.edgewall.org/"
+ xmlns:i18n="http://genshi.edgewall.org/i18n"
+ xmlns:sub="http://local.sublab.org/subdap/xmlns-templates"
+ xmlns:xi="http://www.w3.org/2001/XInclude">
+ <xi:include href="layout.xi"/>
+ <head>
+ <title>login</title>
+ </head>
+ <sub:bodylarge>
+ <div class="cont">
+ <h1>sublab.org calendar</h1>
+ <p>The sublab calendar talks caldav. It is accessable at<br />
+ <a href="https://sublab.org:5232/mittagessen/a">https://sublab.org:5232/mittagessen/a</a><br />
+ with your usual credentials</p>
+ </div>
+ </sub:bodylarge>
+</html>
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 @@
<span i18n:msg="hi">Hi ${user['cn']}!</span>
<p class="app"><a href="https://wiki.sublab.org/auth_subdap.php?${tgts['wiki']}">
<img src="${url('static/app_wiki.png')}" alt="wiki" width="48" height="48"/> sublab.org wiki</a></p>
+ <p class="app"><a href="calendar">
+ <img src="${url('static/app_calendar.png')}" alt="calendar" width="48" height="48"/> Calendar</a></p>
<p class="app"><a href="cfg8021x?username=${user['cn']}">
<img src="${url('static/app_8021x.png')}" alt="wlan" width="24" height="24"/> 802.1X template</a></p>
<p class="app"><a href="pwchange?username=${user['cn']}">