{% extends 'email_base.html' %} {% load i18n seahub_tags %} {% block email_con %}

{% blocktrans with name=to_user|email2nickname %}Hi, {{ name }}{% endblocktrans %}

{% blocktrans count num=notice_count %} You've got 1 new notice on {{ site_name }}: {% plural %} You've got {{num}} new notices on {{ site_name }}: {% endblocktrans %}

{% for notice in notices %} {% endfor %}
{% trans "Message" %} {% trans "Time" %}
{% if notice.is_group_msg %}

{% blocktrans with user=notice.notice_from grp_url=notice.group_url grp_name=notice.group_name%}{{user}} posted a new discussion in {{grp_name}}{% endblocktrans %}

{% if notice.grp_msg %}

{{notice.grp_msg}}

{% endif %} {% elif notice.is_grpmsg_reply %}

{% blocktrans with user=notice.notice_from reply_url=notice.group_msg_reply_url%}{{user}} replied your group discussion{% endblocktrans %}

{% if notice.grp_reply_msg %}
{% if notice.grpmsg_topic %}

{{notice.grpmsg_topic|truncatechars:45}}

{% endif %}

{{notice.grp_reply_msg}}

{% endif %} {% elif notice.is_repo_share_msg %}

{% blocktrans with user=notice.notice_from lib_url=notice.repo_url lib_name=notice.repo_name%}{{user}} has shared a library named {{lib_name}} to you.{% endblocktrans %}

{% elif notice.is_priv_file_share_msg %}

{% blocktrans with user=notice.notice_from file_url=notice.priv_shared_file_url file_name=notice.priv_shared_file_name %}{{user}} has shared a file named {{file_name}} to you.{% endblocktrans %}

{% elif notice.is_user_message %}

{% blocktrans with msg_url=notice.user_msg_url user=notice.notice_from %}You have received a new message from {{user}}.{% endblocktrans %}

{% if notice.user_msg %}

{{notice.user_msg}}

{% endif %} {% elif notice.is_file_uploaded_msg %}

{% blocktrans with file_url=notice.file_link file_name=notice.file_name folder_url=notice.folder_link folder_name=notice.folder_name %}A file named {{file_name}} is uploaded to your folder {{folder_name}}.{% endblocktrans %}

{% elif notice.is_group_join_request %}

{% blocktrans with user_url=notice.grpjoin_user_profile_url user=notice.notice_from grp_url=notice.grpjoin_group_url grp_name=notice.grpjoin_group_name msg=notice.grpjoin_request_msg %}User {{user}} has asked to join group {{grp_name}}, verification message: {{msg}}{% endblocktrans %}

{% endif %}
{{ notice.timestamp|date:"Y-m-d G:i:s"}}

{% trans "Go check out at the following page:" %}
{{ url_base }}{% url 'user_notification_list' %}

{% endblock %}