summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templates/user_posts.html
blob: bd6a1a955b0a0277f07bd35f61033a6327d7dc1d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
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 %}