diff --git a/base/templatetags/seahub_tags.py b/base/templatetags/seahub_tags.py index e5df0dca16..644d4b88d1 100644 --- a/base/templatetags/seahub_tags.py +++ b/base/templatetags/seahub_tags.py @@ -122,3 +122,13 @@ def email2nickname(value): def url_target_blank(text): return text.replace(' by {% if current_commit.props.creator_name %} - {{ current_commit.props.creator_name }} + {{ current_commit.props.creator_name|short_email }} {% else %} 未知 {% endif %} diff --git a/templates/repo_history.html b/templates/repo_history.html index 67295a56a2..c6026f7349 100644 --- a/templates/repo_history.html +++ b/templates/repo_history.html @@ -23,7 +23,7 @@ {{ commit.props.ctime|translate_commit_time }} {% if commit.props.creator_name %} - {{ commit.props.creator_name }} + {{ commit.props.creator_name|short_email }} {% else %} 未知 {% endif %}