diff --git a/base/templatetags/seahub_tags.py b/base/templatetags/seahub_tags.py index 6e586dff95..45d8c587ef 100644 --- a/base/templatetags/seahub_tags.py +++ b/base/templatetags/seahub_tags.py @@ -3,7 +3,6 @@ import datetime as dt from datetime import datetime import re import time -from urllib2 import quote as default_quote from django import template from django.core.cache import cache @@ -294,11 +293,6 @@ def translate_permission(value): else: return '' -@register.filter(name='quote') -def quote(value): - """Replace special characters in value using the %xx escape.""" - return default_quote(value.encode('utf-8')) - @register.filter(name='trim') def trim(value, length): if len(value) > length: diff --git a/contacts/templates/contacts/contact_list.html b/contacts/templates/contacts/contact_list.html index beb14eb28f..59d8553f1f 100644 --- a/contacts/templates/contacts/contact_list.html +++ b/contacts/templates/contacts/contact_list.html @@ -32,7 +32,7 @@ {{ contact.note }} {% trans "Edit"%} - {% trans "Delete"%} + {% trans "Delete"%} {% endfor %} diff --git a/share/templates/repo/share_admin.html b/share/templates/repo/share_admin.html index 0d583f1e31..51824fb9cd 100644 --- a/share/templates/repo/share_admin.html +++ b/share/templates/repo/share_admin.html @@ -54,10 +54,10 @@ {{ repo.props.repo_desc }} {% if repo.props.share_type == 'group' %} - {% trans "Unshare"%} + {% trans "Unshare"%} {% endif %} {% if repo.props.share_type == 'personal' %} - {% trans "Unshare"%} + {% trans "Unshare"%} {% endif %} {% if repo.props.share_type == 'public' %} {% if not org %} diff --git a/templates/snippets/my_owned_repos.html b/templates/snippets/my_owned_repos.html index d040db2697..fb0e38980f 100644 --- a/templates/snippets/my_owned_repos.html +++ b/templates/snippets/my_owned_repos.html @@ -80,7 +80,7 @@ {% trans {% if repo.share_type == 'personal' %} - {% trans + {% trans {% endif %}