summaryrefslogtreecommitdiff
path: root/src/meetingtools/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'src/meetingtools/extensions')
-rw-r--r--src/meetingtools/extensions/templatetags/prefix.py18
-rw-r--r--src/meetingtools/extensions/templatetags/roomurl.py3
2 files changed, 1 insertions, 20 deletions
diff --git a/src/meetingtools/extensions/templatetags/prefix.py b/src/meetingtools/extensions/templatetags/prefix.py
deleted file mode 100644
index 32b8656..0000000
--- a/src/meetingtools/extensions/templatetags/prefix.py
+++ /dev/null
@@ -1,18 +0,0 @@
-'''
-Created on Feb 9, 2011
-
-@author: leifj
-'''
-
-from django import template
-from meetingtools.settings import PREFIX_URL, BASE_URL
-register = template.Library()
-
-@register.simple_tag
-def baseurl():
- return BASE_URL
-
-
-@register.simple_tag
-def prefix():
- return PREFIX_URL \ No newline at end of file
diff --git a/src/meetingtools/extensions/templatetags/roomurl.py b/src/meetingtools/extensions/templatetags/roomurl.py
index 37f1e80..e5abe57 100644
--- a/src/meetingtools/extensions/templatetags/roomurl.py
+++ b/src/meetingtools/extensions/templatetags/roomurl.py
@@ -1,5 +1,4 @@
from django import template
-from meetingtools.settings import BASE_URL
register = template.Library()
@@ -14,7 +13,7 @@ def roomurl(room):
if room.urlpath:
path = room.urlpath
- return "%s/go/%s" % (BASE_URL,path)
+ return "/go/%s" % path
roomurl.is_safe = True
register.filter(roomurl) \ No newline at end of file