aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2014-04-24 07:36:03 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2014-04-24 07:36:03 +0200
commit8574113cfd194a0481f3538d2541dc98aec082e4 (patch)
tree2260744dbc67a59ec52c1decf0822d2ea1ffa2b6
parentMinor changes to the admin/user template. (diff)
downloadnewspipe-8574113cfd194a0481f3538d2541dc98aec082e4.tar.gz
newspipe-8574113cfd194a0481f3538d2541dc98aec082e4.tar.bz2
newspipe-8574113cfd194a0481f3538d2541dc98aec082e4.zip
Updated /management template.
-rw-r--r--pyaggr3g470r/templates/management.html2
-rw-r--r--pyaggr3g470r/views.py2
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)
bgstack15