{% extends 'base.html' %} {% from 'bootstrap/pagination.html' import render_pagination %} {% block title %}通知{% endblock %} {% block content %}
{{ notification_count }} 条未读通知
设置
{% if notifications %}
    {% for notification in notifications %}
  • {{ notification.message|safe }} {{ moment(notification.timestamp).fromNow(refresh=True) }} {% if notification.is_read == False %}
    {% endif %}
  • {% endfor %}
{% else %}
无通知
{% endif %}
{% endblock %}