{% load i18n seahub_tags %} {% for notice in notices %} {% if notice.is_group_msg %} {% with group_message=notice.format_group_message %} {% if group_message %} {{ group_message|safe }} {{ notice.timestamp|translate_seahub_time }} {% endif %} {% endwith %} {% elif notice.is_grpmsg_reply %} {% with grpmsg_reply=notice.format_grpmsg_reply %} {% if grpmsg_reply %} {{ grpmsg_reply|safe }} {{ notice.timestamp|translate_seahub_time }} {% endif %} {% endwith %} {% elif notice.is_file_uploaded_msg %} {{ notice.format_file_uploaded_msg|safe }} {{ notice.timestamp|translate_seahub_time }} {% elif notice.is_repo_share_msg %} {% with repo_share_msg=notice.format_repo_share_msg %} {% if repo_share_msg %} {{ repo_share_msg|safe }} {{ notice.timestamp|translate_seahub_time }} {% endif %} {% endwith %} {% elif notice.is_priv_file_share_msg %} {{ notice.format_priv_file_share_msg|safe }} {{ notice.timestamp|translate_seahub_time }} {% elif notice.is_user_message %} {{ notice.format_user_message|safe }} {{ notice.timestamp|translate_seahub_time }} {% elif notice.is_group_join_request %} {{ notice.format_group_join_request|safe }} {{ notice.timestamp|translate_seahub_time }} {% endif %} {% endfor %}