{% extends 'base.html' %} {% block title %}我的梦幻书架 - 图书管理系统{% endblock %} {% block head %} {{ super() }} {% endblock %} {% block content %}
| 图书封面 | 书名 | 借阅日期 | 应还日期 | 状态 | 操作 | 
|---|---|---|---|---|---|
                            {% if borrow.book.cover_url %}
                                {% if borrow.book.cover_url.startswith('/') %}
                                     
                            {% endif %}
                         | 
                        {{ borrow.book.title }} | {{ borrow.borrow_date.strftime('%Y-%m-%d') }} | {{ borrow.due_date.strftime('%Y-%m-%d') }} {% if borrow.status == 1 and borrow.due_date < now %} 已逾期 {% endif %} | 
                            {% if borrow.status == 1 %}
                                借阅中
                                {% if borrow.renew_count > 0 %}
                                    已续借{{ borrow.renew_count }}次
                                {% endif %}
                            {% else %}
                                已归还
                                 {{ borrow.return_date.strftime('%Y-%m-%d') }} 
                            {% endif %}
                         | 
                        {% if borrow.status == 1 %} {% if borrow.renew_count < 2 and borrow.due_date >= now %} {% endif %} {% endif %} | 
{% if status == 1 %} 哎呀~你还没有借阅任何图书呢!快去探索那些等待与你相遇的故事吧~ {% elif status == 0 %} 亲爱的,你还没有归还过任何图书呢~一起开启阅读的奇妙旅程吧! {% else %} 你的书架空空如也~赶快挑选几本心动的书籍,开启你的阅读冒险吧! {% endif %}
探索好书