diff --git a/base/templatetags/seahub_tags.py b/base/templatetags/seahub_tags.py
index 8501be2b3a..5ebbd3495c 100644
--- a/base/templatetags/seahub_tags.py
+++ b/base/templatetags/seahub_tags.py
@@ -256,3 +256,8 @@ def translate_permission(value):
return _(u'Read-Only')
else:
return ''
+
+@register.filter(name='quote')
+def quote(value):
+ from urllib2 import quote
+ return quote(value)
diff --git a/contacts/templates/contacts/contact_list.html b/contacts/templates/contacts/contact_list.html
index 02f470dd10..c57ec1923d 100644
--- a/contacts/templates/contacts/contact_list.html
+++ b/contacts/templates/contacts/contact_list.html
@@ -1,5 +1,5 @@
{% extends "myhome_base.html" %}
-{% load avatar_tags i18n %}
+{% load avatar_tags i18n seahub_tags %}
{% block nav_contacts_class %}class="cur"{% endblock %}
@@ -31,7 +31,7 @@
{{ contact.note }} |
{% trans "Edit"%}
- {% trans "Delete"%}
+ {% trans "Delete"%}
|
{% endfor %}
diff --git a/organizations/urls.py b/organizations/urls.py
index 36b8ff0943..402de53f4c 100644
--- a/organizations/urls.py
+++ b/organizations/urls.py
@@ -19,7 +19,7 @@ urlpatterns = patterns('',
# repo share
- url(r'^(?P[^/]+)/shareadmin/$', org_shareadmin, name='org_shareadmin'),
+ url(r'^(?P[^/]+)/share/$', org_shareadmin, name='org_shareadmin'),
url(r'^(?P[^/]+)/repo/share/$', org_repo_share, name='org_repo_share'),
url(r'^(?P[^/]+)/share/permission_admin/$', org_share_permission_admin, name='org_share_permission_admin'),
diff --git a/share/templates/repo/share_admin.html b/share/templates/repo/share_admin.html
index f46f7c87b6..ff9a62ad98 100644
--- a/share/templates/repo/share_admin.html
+++ b/share/templates/repo/share_admin.html
@@ -53,10 +53,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/share/views.py b/share/views.py
index e5e0fccfaf..20b2a49c92 100644
--- a/share/views.py
+++ b/share/views.py
@@ -146,7 +146,7 @@ def repo_remove_share(request):
repo_id = request.GET.get('repo_id', '')
group_id = request.GET.get('gid', '')
from_email = request.GET.get('from', '')
-
+
# if request params don't have 'gid', then remove repos that share to
# to other person; else, remove repos that share to groups
if not group_id:
diff --git a/templates/org_base.html b/templates/org_base.html
index 2927ad3ed5..b45ab8bd6a 100644
--- a/templates/org_base.html
+++ b/templates/org_base.html
@@ -12,7 +12,7 @@
{% trans "Groups" %}
- {% trans "Share" %}
+ {% trans "Share" %}
{% trans "Public Library" %}
diff --git a/templates/snippets/my_owned_repos.html b/templates/snippets/my_owned_repos.html
index 1341e0fa1b..d0a21c337e 100644
--- a/templates/snippets/my_owned_repos.html
+++ b/templates/snippets/my_owned_repos.html
@@ -80,7 +80,7 @@
{% if repo.share_type == 'personal' %}
-
+
{% endif %}
|
|