diff --git a/article/templates/article/detail.html b/article/templates/article/detail.html index ff1ce1e..4761094 100644 --- a/article/templates/article/detail.html +++ b/article/templates/article/detail.html @@ -1,7 +1,7 @@ {% extends "base.html" %} {% load timetonow %} {% block header %} -{{art.title}} - 物志 +{% ifnotequal user.unread 0%} ({{user.unread}}) {% endifnotequal %} 物志 › {{art.title}} {% block header %} - {% if title %}{{title}} - {% endif %}物志 + {% ifnotequal user.unread 0%} ({{user.unread}}) {% endifnotequal %} 物志 {% if title %}› {{title}} {% endif %} {% endblock %} diff --git a/templates/index.html b/templates/index.html index 49b82e1..04fcedb 100644 --- a/templates/index.html +++ b/templates/index.html @@ -34,7 +34,7 @@

{% if title %}{{title}}{% endif %}

 {{i.publish_time|timetonow}}     -  {{i.author}} +  {{i.author_id}}      {{i.section}}     diff --git a/userpage/__pycache__/views.cpython-36.pyc b/userpage/__pycache__/views.cpython-36.pyc index 3af1a70..1925ea8 100644 Binary files a/userpage/__pycache__/views.cpython-36.pyc and b/userpage/__pycache__/views.cpython-36.pyc differ diff --git a/userpage/templates/userpage/profile.html b/userpage/templates/userpage/profile.html index 73f9f3c..d108f70 100644 --- a/userpage/templates/userpage/profile.html +++ b/userpage/templates/userpage/profile.html @@ -3,7 +3,7 @@ {% load displayName %} {% block header %} - 物志 › {{request.user}} + {% ifnotequal user.unread 0%} ({{user.unread}}) {% endifnotequal %} 物志 › {{request.user}}