diff --git a/seahub/base/templatetags/seahub_tags.py b/seahub/base/templatetags/seahub_tags.py index 362198a7cd..8c96f88b8a 100644 --- a/seahub/base/templatetags/seahub_tags.py +++ b/seahub/base/templatetags/seahub_tags.py @@ -417,3 +417,7 @@ def trim(value, length): return value[:length-2] + '...' else: return value + +@register.filter(name='strip_slash') +def strip_slash(value): + return value.strip('/') diff --git a/seahub/group/templates/group/group_info_for_pub.html b/seahub/group/templates/group/group_info_for_pub.html index 1f967efbec..39f8eefa4e 100644 --- a/seahub/group/templates/group/group_info_for_pub.html +++ b/seahub/group/templates/group/group_info_for_pub.html @@ -26,7 +26,7 @@ {% trans {% endif %} - {{ repo.props.name }} + {{ repo.props.name }} {{ repo.props.desc }} {% if repo.latest_modify %} diff --git a/seahub/group/templates/group/groups_right_panel.html b/seahub/group/templates/group/groups_right_panel.html index 2a4919632c..c54b685507 100644 --- a/seahub/group/templates/group/groups_right_panel.html +++ b/seahub/group/templates/group/groups_right_panel.html @@ -9,13 +9,13 @@