From 062eb3b05525a1befb0dccfd3ca210f3824fc5c0 Mon Sep 17 00:00:00 2001 From: gothack329 Date: Tue, 6 Mar 2018 00:10:31 +0800 Subject: [PATCH] upload avatar --- article/templates/article/detail.html | 4 ++-- db.sqlite3 | Bin 360448 -> 368640 bytes .../avatar/Snipaste_2018-03-05_21-28-39.png | Bin 0 -> 284463 bytes static/avatar/a.png | Bin 0 -> 62727 bytes static/bootstrap/css/style.css | 4 ++-- .../upload/injustice-2-powergirl-995531.jpg | Bin 0 -> 22801 bytes templates/base.html | 2 +- templates/index.html | 2 +- userpage/__pycache__/views.cpython-36.pyc | Bin 3631 -> 3652 bytes userpage/templates/userpage/profile.html | 2 +- userpage/views.py | 2 +- 11 files changed, 8 insertions(+), 8 deletions(-) create mode 100644 static/avatar/Snipaste_2018-03-05_21-28-39.png create mode 100644 static/avatar/a.png create mode 100644 static/upload/injustice-2-powergirl-995531.jpg 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 3af1a701443e56d6899b2777f8cadf1ae16be298..1925ea878d0d0945e0ea92f77b839e24eda6b5d2 100644 GIT binary patch delta 485 zcmX|+KS&%w6vp41-JRLp+0_I!U~(RUjlsfzHWnJs6wwe*Wl_XR;a$W%ICR)@mK1BN z&2&L~I}uwe5v)^%SS5{xDeXgM_8`s2_kQo={kd%1HKLg`jeoSxcaE>3Cja^u05s%4 z*k$UrKQ*Q>o=>;wyiw)v{&q@SFWxnWM({R fj;y(Q;lI3hZqsDR3T|GXCvzy*9ogvP-)Z|F7#ecE delta 528 zcmX|6%W4!s6uq~)yQ*Jf6f_cv1LDRI&_&z`CXR$af;tm2L4pfm;CABl=r}1lWRYqj z^ja6GUBDl3BYAv*_yw+{3HgSsTw8ZW+?+c1oO@1H{ha+i8!a>%@elR&&B003l!sRU zU?2y=fzaoUA&D6%am+l—mPq`q!!qRu#Bi}he;kZE~DERD^(nx|qq>qiC2Njrr z(RF?)q}!5}K)#1tWQF<@x8#ZrZ&rv%(}=)A3GhfEskoczvwA zF3^v#F+^x30>prfh?NfCRTlTGL zMzzw}cBV6JjXIX8e&iPH{cy|KCfo`ix)DSy>}5EQ9UDixxPE4$*VueMZgNn2qkXD_ z>_e~reop9V);H``yeL~tSL{Nvj4O6Od62BK@R(uEeoH!09gK8;Sm+l=>7DjV)?YcO zed-mxNl}Z%4Hj`vFY=k}jhvm0K63Cj+iixW|L~02rhS*L;pW+C`UH~>E9(>aPow=8 DI+}jQ 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}}