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

{% 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 %} {% if notice.is_group_msg %} {% elif notice.is_grpmsg_reply %} {% elif notice.is_repo_share_msg %} {% elif notice.is_priv_file_share_msg %} {% elif notice.is_user_message %} {% elif notice.is_file_uploaded_msg %} {% elif notice.is_group_join_request %} {% endif %} {% endfor %}
{% trans "Message"%} {% trans "Time"%}
{% blocktrans with user=notice.group_msg_from grp_url=notice.group_url grp_name=notice.group_name%}{{user}} posted a new discussion in {{grp_name}}{% endblocktrans %} {{ notice.timestamp|date:"Y-m-d G:i:s"}}
{% blocktrans with user=notice.group_msg_reply_from reply_url=notice.group_msg_reply_url%}{{user}} replied your group discussion{% endblocktrans %} {{ notice.timestamp|date:"Y-m-d G:i:s"}}
{% blocktrans with user=notice.repo_share_from lib_url=notice.repo_url lib_name=notice.repo_name%}{{user}} has shared a library named {{lib_name}} to you.{% endblocktrans %} {{ notice.timestamp|date:"Y-m-d G:i:s"}}
{% blocktrans with user=notice.priv_shared_file_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 %} {{ notice.timestamp|date:"Y-m-d G:i:s"}}
{% blocktrans with msg_url=notice.user_msg_url user=notice.user_msg_from %}You have received a new message from {{user}}.{% endblocktrans %} {{ notice.timestamp|date:"Y-m-d G:i:s"}}
{% blocktrans with file_url=notice.uploaded_file_link file_name=notice.uploaded_file_name folder_url=notice.uploaded_folder_link folder_name=notice.uploaded_folder_name %}A file named {{file_name}} is uploaded to your folder {{folder_name}}.{% endblocktrans %} {{ notice.timestamp|date:"Y-m-d G:i:s"}}
{% blocktrans with user_url=notice.grpjoin_user_profile_url user_name=notice.grpjoin_username grp_url=notice.grpjoin_group_url grp_name=notice.grpjoin_group_name msg=notice.grpjoin_request_msg%}User {{user_name}} has asked to join group {{grp_name}}, verification message: {{msg}}.{% endblocktrans %} {{ notice.timestamp|date:"Y-m-d G:i:s"}}

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

{% endautoescape %} {% endblock %}