From 8574113cfd194a0481f3538d2541dc98aec082e4 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Thu, 24 Apr 2014 07:36:03 +0200 Subject: Updated /management template. --- pyaggr3g470r/templates/management.html | 2 ++ pyaggr3g470r/views.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pyaggr3g470r/templates/management.html b/pyaggr3g470r/templates/management.html index 2f687cf8..ad2faada 100644 --- a/pyaggr3g470r/templates/management.html +++ b/pyaggr3g470r/templates/management.html @@ -12,6 +12,8 @@

Your Profile

Update your profile.

+

Member since {{ user.date_created.strftime('%A, %d %B %Y') }}.

+

Last seen: {{ user.last_seen.strftime('%A, %d %B %Y at %H:%M:%S') }}.

Import/export feeds

diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py index 72fd4e97..514d1920 100644 --- a/pyaggr3g470r/views.py +++ b/pyaggr3g470r/views.py @@ -488,7 +488,7 @@ def management(): nb_feeds = len(user.feeds.all()) nb_articles = len(Article.query.filter(Article.user_id == g.user.id).all()) nb_unread_articles = len(Article.query.filter(Article.user_id == g.user.id, Article.readed == False).all()) - return render_template('management.html', form=form, \ + return render_template('management.html', user=user, form=form, \ nb_feeds=nb_feeds, nb_articles=nb_articles, nb_unread_articles=nb_unread_articles, \ not_on_heroku = not conf.ON_HEROKU) -- cgit