{% 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 %}

| {% trans "Message" %} | {% trans "Time" %}
--- | --- | ---
{% for notice in notices %}

{% 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_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_repo_share_to_group_msg %}

{% blocktrans with user=notice.notice_from lib_url=notice.repo_url lib_name=notice.repo_name group_url=notice.group_url group_name=notice.group_name %}{{user}} has shared a library named {{lib_name}} to group {{group_name}}.{% 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 %}

{% elif notice.is_add_user_to_group %}

{% blocktrans with user_url=notice.group_staff_profile_url user=notice.notice_from grp_url=notice.group_url grp_name=notice.group_name %}User {{user}} has added you to group {{grp_name}}{% endblocktrans %}

{% elif notice.is_file_comment_msg %}

{% blocktrans with file_url=notice.file_url file_name=notice.file_name author=notice.author %}File {{file_name}} has a new comment from user {{author}}{% endblocktrans %}

{% endif %}

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

{% endfor %}

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

{% endblock %}