{% extends 'base.html' %} {% block title %}我的通知 - 图书管理系统{% endblock %} {% block head %} {% endblock %} {% block content %}
所有通知 未读通知
{% if pagination.items %} {% for notification in pagination.items %}
{% if notification.status == 0 %} {# Icon for unread #} {% else %} {# Icon for read #} {% endif %}

{{ notification.title }} {% if notification.status == 0 %} 未读 {% endif %}

{{ notification.content|striptags|truncate(120) }}
{{ notification.type }} {{ notification.created_at.strftime('%Y-%m-%d %H:%M') }}
{% endfor %}
{% if pagination.pages > 1 %} {% endif %}
{% else %}
{# Suggestion: Use a more vibrant/friendly icon or illustration #} No notifications icon

{{ '还没有未读通知哦~' if unread_only else '这里空空如也,暂时没有新通知。' }}

{% endif %}
{% endblock %} {% block scripts %} {# #} {# Assuming notifications.js is for interactivity not directly tied to styling #} {% endblock %}