From 6103bcf05feeddace63fcc5857665d3762e25c8b Mon Sep 17 00:00:00 2001 From: Aurélien Bompard Date: Sat, 10 Aug 2013 17:47:49 -0400 Subject: Add email and subscriptions to the user profile --- .../templates/fragments/user_subscriptions.html | 39 ++++++++++++++++++++++ hyperkitty/templates/user_profile.html | 16 +++++++++ hyperkitty/templates/user_public_profile.html | 36 +------------------- 3 files changed, 56 insertions(+), 35 deletions(-) create mode 100644 hyperkitty/templates/fragments/user_subscriptions.html (limited to 'hyperkitty/templates') diff --git a/hyperkitty/templates/fragments/user_subscriptions.html b/hyperkitty/templates/fragments/user_subscriptions.html new file mode 100644 index 0000000..ef661c2 --- /dev/null +++ b/hyperkitty/templates/fragments/user_subscriptions.html @@ -0,0 +1,39 @@ +{% load url from future %} +{% load hk_generic %} + + {% if subscriptions %} + + + + + + + + + + + + {% for sub in subscriptions %} + + + {% if sub.first_post %} + + + + + {% else %} + + {% endif %} + + {% endfor %} + +
ListTime of first activityFirst postPosts to this listVotes
+ {{ sub.list_name }} + + {{ sub.first_post|get_date|date:"l, j F Y H:i:s" }} + {{ sub.first_post|get_date|timesince }} + {{ sub.first_post.subject }}{{ sub.posts_count }} post{{ sub.posts_count|pluralize }}+{{ sub.likes }}/-{{ sub.dislikes }}no post yet
+ {% else %} +

no subscriptions

+ {% endif %} + diff --git a/hyperkitty/templates/user_profile.html b/hyperkitty/templates/user_profile.html index c7d7550..1d25499 100644 --- a/hyperkitty/templates/user_profile.html +++ b/hyperkitty/templates/user_profile.html @@ -21,6 +21,7 @@
  • Favorites
  • Threads you have read
  • Votes
  • +
  • Subscriptions
  • @@ -37,6 +38,16 @@ {% trans 'Email:' %} {{ user.email }} + {% if emails %} + + {% trans 'Other emails:' %} + + + {% endif %} {% if use_mockups %} {% trans 'Karma:' %} @@ -91,6 +102,11 @@
    + +
    + {% include "fragments/user_subscriptions.html" %} +
    + diff --git a/hyperkitty/templates/user_public_profile.html b/hyperkitty/templates/user_public_profile.html index 4172969..d949270 100644 --- a/hyperkitty/templates/user_public_profile.html +++ b/hyperkitty/templates/user_public_profile.html @@ -41,41 +41,7 @@

    Subscriptions

    - {% if subscriptions %} - - - - - - - - - - - - {% for sub in subscriptions %} - - - {% if sub.first_post %} - - - - - {% else %} - - {% endif %} - - {% endfor %} - -
    ListTime of first activityFirst postPosts to this listVotes
    - {{ sub.list_name }} - - {{ sub.first_post|get_date|date:"l, j F Y H:i:s" }} - {{ sub.first_post|get_date|timesince }} - {{ sub.first_post.subject }}{{ sub.posts_count }} post{{ sub.posts_count|pluralize }}+{{ sub.likes }}/-{{ sub.dislikes }}no post yet
    - {% else %} -

    no subscriptions

    - {% endif %} + {% include "fragments/user_subscriptions.html" %} -- cgit