blob: e5abe57901c585bc3e7ad08e47f8ab8ebe91a08d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
from django import template
register = template.Library()
MOMENT = 120 # duration in seconds within which the time difference
# will be rendered as 'a moment ago'
def roomurl(room):
"""
Display the public 'go' URL of a meetingroom
"""
path = room.id
if room.urlpath:
path = room.urlpath
return "/go/%s" % path
roomurl.is_safe = True
register.filter(roomurl)
|