diff options
-rw-r--r-- | pyaggr3g470r/templates/management.html | 2 | ||||
-rw-r--r-- | pyaggr3g470r/views.py | 2 |
2 files changed, 3 insertions, 1 deletions
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 @@ <div class="jumbotron"> <h1>Your Profile</h1> <p>Update your <a href="/profile/">profile</a>.</p> + <p>Member since {{ user.date_created.strftime('%A, %d %B %Y') }}.</p> + <p>Last seen: {{ user.last_seen.strftime('%A, %d %B %Y at %H:%M:%S') }}.</p> </div> <div class="jumbotron"> <h1>Import/export feeds</h1> 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) |