diff options
author | Leif Johansson <leifj@sunet.se> | 2011-03-03 23:28:11 +0100 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2011-03-03 23:28:11 +0100 |
commit | d60a62a68a5c3442a6b464cca1c1a218d57d8ecc (patch) | |
tree | bc7f4d62751fff095bfcd547a95714b19e5b5487 /coip/extensions | |
parent | 5bf172664d789d10781441e2a812f626c15c8da6 (diff) |
new acl UI
Diffstat (limited to 'coip/extensions')
-rw-r--r-- | coip/extensions/templatetags/permdisplay.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/coip/extensions/templatetags/permdisplay.py b/coip/extensions/templatetags/permdisplay.py index 23e6ed3..3928094 100644 --- a/coip/extensions/templatetags/permdisplay.py +++ b/coip/extensions/templatetags/permdisplay.py @@ -25,7 +25,7 @@ permdisplay.is_safe = True register.filter(permdisplay) def acldstdisplay(dst): - if dst.display.startswith("user:"): + if dst.display.startswith("user:") and dst.display.count(":") == 1: (pfx,username) = split(dst.display,":",1) user = User.objects.get(username=username) if user: @@ -33,7 +33,7 @@ def acldstdisplay(dst): else: return "Unknown user \"%s\"" % username else: - return "Members of <a class=\"tip\" title=\"%s\" href=\"/name/id/%d\">%s</a>" % (dst.display,dst.id,dst.short) + return "members of %s (%s)" % (dst.short,dst.display) acldstdisplay.is_safe = True |