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

{% blocktrans with name=user_name %}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_repo_share_msg %}

{% if notice.shared_type == 'library' %} {% include "notifications/notice_msg/repo_share_msg.html" with user=notice.notice_from lib_url=notice.repo_url lib_name=notice.repo_name %} {% else %} {% include "notifications/notice_msg/folder_share_msg.html" with user=notice.notice_from lib_url=notice.repo_url lib_name=notice.repo_name %} {% endif %}

{% elif notice.is_repo_share_to_group_msg %}

{% if notice.shared_type == 'library' %} {% include "notifications/notice_msg/repo_share_to_group_msg.html" 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 %} {% else %} {% include "notifications/notice_msg/folder_share_to_group_msg.html" 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 %} {% endif %}

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

{% elif notice.is_guest_invitation_accepted_msg %}

{% blocktrans with user=notice.inv_accepter inv_url=notice.inv_url time=notice.inv_accept_at %}Guest {{user}} accepted your invitation at {{time}}.{% 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 %}