From 3f4bdff449cb80fed2fcf2121dc221def04ef0b5 Mon Sep 17 00:00:00 2001 From: jieun Date: Tue, 4 Apr 2017 17:03:43 -0400 Subject: [PATCH] edit profile so that it shows the number of posts written by a specific user --- app/templates/user.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/templates/user.html b/app/templates/user.html index 67765a7..6d719af 100644 --- a/app/templates/user.html +++ b/app/templates/user.html @@ -3,7 +3,7 @@ {% block content %} {% include 'flash.html' %} -
+
@@ -12,6 +12,7 @@ {% if user.last_seen %}

{{ _('Last seen:') }} {{ momentjs(user.last_seen).calendar() }}

{% endif %} +

number of posts written: {{ user.posts.count() }}

{{ _('Followers:') }} {{ user.followers.count() - 1 }} | {{ _('Following:') }} {{ user.followed.count() - 1 }} | {% if user.id == g.user.id %} {{ _('Edit your profile') }}