summaryrefslogtreecommitdiffstats
path: root/hyperkitty/templates/user_profile.html
blob: 307714190f029d24e9a6ec54624abe72fee75838 (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
{% extends "base.html" %}
{% load i18n %}
{% load poll_extras %}

{% block content %}
    <h1>User Profile <span>- {{ user }}</span></h1>

    <table class="table table-bordered table-striped mm_userData">
    	<tbody>
    		<tr>
    			<th>{% trans 'User name' %}</th>
    			<td>{{ user.username}}</td>
    		</tr>
    		<tr>
    			<th>{% trans 'Firstname' %}</th>
    			<td>{{ user.first_name }}</td>
    		</tr>
    		<tr>
    			<th>{% trans 'Lastname' %}</th>
    			<td>{{ user.last_name }}</td>
    		</tr>
		<tr>
    			<th>{% trans 'Email' %}</th>
    			<td>{{ user.email }}</td>
    		</tr>
		<tr>
    			<th>{% trans 'Karma' %}</th>
    			<td>{{ user_profile.karma }}</td>
    		</tr>
		<tr>
    			<th>{% trans 'Date Joined' %}</th>
    			<td>{{ user.date_joined }}</td>
    		</tr>
    	</tbody>
    </table>
    {% if settings.USE_MOCKUPS %}
    <h3> Up Votes : </h3>

	<ul>
	{% for vote in user_profile.votes %}
		{% if vote.vote == 1 %}
		<li>
		{% if vote.message.content|trimString|length > 0 %}
			<a href="{% url message_index mlist_fqdn=vote.list_address, hashid=vote.messageid %}">{{ vote.message.content|truncatechars:20 }}</a>
		{% else %}
			<a href="{% url message_index mlist_fqdn=vote.list_address, hashid=vote.messageid %}">Message is empty</a>
		{% endif %}
		</li>
		{% endif %}
	{% endfor %}
	</ul>

	<h3> Down Votes : </h3>

	<ul>
	{% for vote in user_profile.votes %}
		{% if vote.vote == -1 %}
		<li>
		{% if vote.message.content|trimString|length > 0 %}
			<a href="{% url message_index mlist_fqdn=vote.list_address, hashid=vote.messageid %}">{{ vote.message.content|truncatechars:20 }}</a>
		{% else %}
			<a href="{% url message_index mlist_fqdn=vote.list_address, hashid=vote.messageid %}">Message is empty</a>
		{% endif %}
		</li>
		{% endif %}
	{% endfor %}
	</ul>
    {% endif %}


{% endblock %}