{% extends 'base_advance.html' %} {% load staticfiles %} {% block title %}Index{% endblock %} {% block body_block %}
{% if user.is_authenticated %}

Hello !{{ user.username }} 以下是你的Todo List (按照优先度由大到小排序)

{% else %}

Welcome to Todolist site

要体验完整功能,请先登录

Login

{% endif %}
{% if item_list %} {% for i in item_list %} {% if i.item_prority == 10 %}
{{ i.item_name }}
{% elif i.item_prority >= 5 and i.item_prority < 10 %}
{{ i.item_name }}
{% elif i.item_prority > 1 and i.item_prority < 5 %}
{{ i.item_name }}
{% elif i.item_prority == 1 %}
{{ i.item_name }}
{% endif %} {% endfor %}
共{{pages.count}}项。当前第{{item_list.number}}页,共{{pages.num_pages}}页
{% else %}

你现在啥也没有啊

{% endif %} {% endblock %}