From a9f0774c36caa591b18987a67107dd1b679f7455 Mon Sep 17 00:00:00 2001 From: Miguel Grinberg Date: Mon, 31 Dec 2012 13:07:54 -0800 Subject: [PATCH] account for users following themselves in profile page follower counts --- app/templates/base.html | 2 +- app/templates/user.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/templates/base.html b/app/templates/base.html index 2e6f492..1d45d58 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -43,4 +43,4 @@ - \ No newline at end of file + diff --git a/app/templates/user.html b/app/templates/user.html index b23a9d3..d0b27fc 100644 --- a/app/templates/user.html +++ b/app/templates/user.html @@ -10,7 +10,7 @@

{{user.nickname}}

{% if user.about_me %}

{{user.about_me}}

{% endif %} {% if user.last_seen %}

Last seen on: {{user.last_seen}}

{% endif %} -

Followers: {{user.followers.count()}} | Following: {{user.followed.count()}} | +

Followers: {{user.followers.count() - 1}} | Following: {{user.followed.count() - 1}} | {% if user.id == g.user.id %} Edit your profile {% elif not g.user.is_following(user) %} @@ -35,4 +35,4 @@

{% endif %} -{% endblock %} \ No newline at end of file +{% endblock %}