diff options
Diffstat (limited to 'hyperkitty/templates')
-rw-r--r-- | hyperkitty/templates/messages/message.html | 9 | ||||
-rw-r--r-- | hyperkitty/templates/user_public_profile.html | 80 |
2 files changed, 87 insertions, 2 deletions
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 @@ </div> <div class="email-author inline-block"> <span class="name"><a - href="{% url 'message_index' mlist_fqdn=mlist.name message_id_hash=email.message_id_hash %}" - title="{{ email.subject }}" + href="{% url 'public_user_profile' email=email.sender_email %}" + title="See {{ email.sender_name|escapeemail|escape }}'s profile" >{{email.sender_name|escapeemail}}</a></span> + <br /> + <span class="messagelink"> + (<a href="{% url 'message_index' mlist_fqdn=mlist.name message_id_hash=email.message_id_hash %}" + title="{{ email.subject }}">permalink</a>) + </span> {% if use_mockups %} <br /> <span class="rank"> 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 %} + +<div id="user-profile"> + + <h1>User profile <small>for {{ email }}</small></h1> + + <table class="table table-bordered table-striped user-data"> + <tbody> + <tr> + <th>{% trans 'Name:' %}</th> + <td>{{ fullname }}</td> + </tr> + <tr> + <th>{% trans 'Email:' %}</th> + <td>{{ email }}</td> + </tr> + {% if creation %} + <tr> + <th>{% trans 'Creation:' %}</th> + <td>{{ creation|date:"l, j F Y H:i:s" }} ({{ creation|timesince }})</td> + </tr> + {% endif %} + <tr> + <th>{% trans 'Votes for this user:' %}</th> + <td><span class="likestatus {{ likestatus }}">+{{ likes }}/-{{ dislikes }}</span></td> + </tr> + </tbody> + </table> + + <h3>Subscriptions</h3> + {% if subscriptions %} + <table class="table table-striped table-bordered table-condensed subscriptions"> + <thead> + <tr> + <th>List</th> + <th>Time of first activity</th> + <th>First post</th> + <th>Posts to this list</th> + <th>Votes</th> + </tr> + </thead> + <tbody> + {% for sub in subscriptions %} + <tr> + <td> + <a href="{% url 'list_overview' sub.list_name %}">{{ sub.list_name }}</a> + </td> + {% if sub.first_post %} + <td> + {{ sub.first_post|get_date|date:"l, j F Y H:i:s" }} + {{ sub.first_post|get_date|timesince }} + </td> + <td>{{ sub.first_post.subject }}</td> + <td><a href="{{ sub.all_posts_url }}">{{ sub.posts_count }} post{{ sub.posts_count|pluralize }}</a></td> + <td><span class="likestatus {{ sub.likestatus }}">+{{ sub.likes }}/-{{ sub.dislikes }}</span></td> + {% else %} + <td colspan="4" style="text-align:center"><em>no post yet</em></td> + {% endif %} + </tr> + {% endfor %} + </tbody> + </table> + {% else %} + <p><em>no subscriptions</em></p> + {% endif %} + +</div> + +{% endblock %} |