From f7521efee66e5297528f52290b670df6c2ddb2aa Mon Sep 17 00:00:00 2001 From: Aurélien Bompard Date: Wed, 31 Jul 2013 09:12:12 +0200 Subject: Add User profiles --- hyperkitty/templates/messages/message.html | 9 ++- hyperkitty/templates/user_public_profile.html | 80 +++++++++++++++++++++++++++ 2 files changed, 87 insertions(+), 2 deletions(-) create mode 100644 hyperkitty/templates/user_public_profile.html (limited to 'hyperkitty/templates') diff --git a/hyperkitty/templates/messages/message.html b/hyperkitty/templates/messages/message.html index 453e248..7140d75 100644 --- a/hyperkitty/templates/messages/message.html +++ b/hyperkitty/templates/messages/message.html @@ -28,9 +28,14 @@
{{email.sender_name|escapeemail}} +
+ + (permalink) + {% if use_mockups %}
diff --git a/hyperkitty/templates/user_public_profile.html b/hyperkitty/templates/user_public_profile.html new file mode 100644 index 0000000..b62002d --- /dev/null +++ b/hyperkitty/templates/user_public_profile.html @@ -0,0 +1,80 @@ +{% extends "base.html" %} +{% load url from future %} +{% load i18n %} +{% load hk_generic %} +{% load gravatar %} + + +{% block title %} +{% trans 'User Profile' %} for {{ email }} - {{ app_name|title }} +{% endblock %} + +{% block content %} + +
+ +

User profile for {{ email }}

+ + + + + + + + + + + + {% if creation %} + + + + + {% endif %} + + + + + +
{% trans 'Name:' %}{{ fullname }}
{% trans 'Email:' %}{{ email }}
{% trans 'Creation:' %}{{ creation|date:"l, j F Y H:i:s" }} ({{ creation|timesince }})
{% trans 'Votes for this user:' %}+{{ likes }}/-{{ dislikes }}
+ +

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 %} + +
+ +{% endblock %} -- cgit