summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templates/user_posts.html
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2013-11-30 18:53:43 +0100
committerAurélien Bompard <aurelien@bompard.org>2013-11-30 18:53:43 +0100
commit552582410df622d58da330ea712e83f1fa775c9b (patch)
treeb75c51ae356609eae1da65c531b0edc0baf5befd /hyperkitty/templates/user_posts.html
parentde5710edeb34e9433f76a1ccd6f65ab144f373d2 (diff)
downloadhyperkitty-552582410df622d58da330ea712e83f1fa775c9b.tar.gz
hyperkitty-552582410df622d58da330ea712e83f1fa775c9b.tar.xz
hyperkitty-552582410df622d58da330ea712e83f1fa775c9b.zip
Don't use the search engine to display a user's posts
Diffstat (limited to 'hyperkitty/templates/user_posts.html')
-rw-r--r--hyperkitty/templates/user_posts.html77
1 files changed, 77 insertions, 0 deletions
diff --git a/hyperkitty/templates/user_posts.html b/hyperkitty/templates/user_posts.html
new file mode 100644
index 0000000..bd6a1a9
--- /dev/null
+++ b/hyperkitty/templates/user_posts.html
@@ -0,0 +1,77 @@
+{% extends "base.html" %}
+{% load url from future %}
+{% load gravatar %}
+{% load hk_generic %}
+
+
+{% block title %}
+Messages by {{ fullname }}{% if mlist %} - {{ mlist.display_name|default:mlist.name|escapeemail }} {% endif %} - {{ app_name|title }}
+{% endblock %}
+
+{% block content %}
+
+<div class="row-fluid">
+
+<div id="months-list" class="span2"> </div>
+
+ <div id="thread-list" class="span8">
+
+ <div class="thread-list-header page-header">
+ {% if mlist %}
+ <h1>Messages by {{ fullname }}
+ <small>in {{ mlist.display_name|default:mlist.name|escapeemail }}</small>
+ </h1>
+ {% else %}
+ <h1>Messages by {{ fullname }}</h1>
+ {% endif %}
+ <ul class="thread-list-info">
+ {% if mlist.display_name %}
+ <li class="list-address">
+ {{ mlist.name|escapeemail }}
+ </li>
+ {% endif %}
+ <li class="discussion">
+ {{ messages.paginator.count }} messages
+ </li>
+ <li>
+ <a href="{% url 'public_user_profile' user_id=user_id %}">
+ Back to {{ fullname }}'s profile
+ </a>
+ </li>
+ </ul>
+
+ </div>
+
+ {% for message in messages %}
+ {% include "messages/summary_message.html" %}
+ {% empty %}
+ <p>Sorry no email could be found by this user.</p>
+ {% endfor %}
+
+ {% include "paginator.html" with pager=messages %}
+
+ </div>
+
+</div>
+
+{% endblock %}
+
+{% block additionaljs %}
+<script>
+$(document).ready(function() {
+ $('span.expander').expander({
+ slicePoint: 500,
+ userCollapseText : '\n[View Less]',
+ expandText : '\n[View More]',
+ beforeExpand: function() {
+ $(this).removeClass("collapsed");
+ $(this).addClass("expanded");
+ },
+ onCollapse: function() {
+ $(this).removeClass("expanded");
+ $(this).addClass("collapsed");
+ }
+ });
+});
+</script>
+{% endblock %}