template filter to get resource labels
@@ -31,6 +31,12 @@ def user_permission(content, arg):
return permission
+@register.filter
+def user_resource_labels(resource, user):
+ # get a list of labels associated with a specified resource by a given user
+ return resource.rlabels.get_labels(user)
+
+
@register.filter
def app_on_open_with_list(content, arg):
"""
