{% extends "console/base.html" %} {% block title %}通知{% endblock %} {% block heading %}通知{% endblock %} {% block content %}
{% if page.object_list %} {% for n in page.object_list %} {% endfor %}
时间标题渠道状态
{{ n.created_at|date:"m-d H:i" }}
{{ n.title }}
{% if n.body %}
{{ n.body }}
{% endif %}
{{ n.channel }} {% if n.read_at %}已读 {% elif n.sent_at %}已送达 {% else %}待发送{% endif %} {% if not n.read_at %}
{% csrf_token %}
{% endif %}
{% if page.has_other_pages %}
{% if page.has_previous %}上一页{% endif %} 第 {{ page.number }} / {{ page.paginator.num_pages }} 页 {% if page.has_next %}下一页{% endif %}
{% endif %} {% else %}
没有通知。任务成功/失败/额度耗尽会触发通知(订阅关系在 notify 的 SUBSCRIBERS 里)。
{% endif %}
{% endblock %}