source: djangobb/djangobb_forum/templates/forum/user.html @ 326:b95215b73b3b

Last change on this file since 326:b95215b73b3b was 326:b95215b73b3b, checked in by slav0nic <slav0nic0@…>, 2 years ago

imported patch html_w3c.patch

File size: 4.3 KB
Line 
1{% extends 'forum/base.html' %}
2{% load forum_extras %}
3{% load i18n %}
4
5{% block content %}
6<div id="viewprofile" class="block">
7        <h2><span>{% trans "Profile" %}</span></h2>
8        <div class="box">
9                <div class="fakeform">
10                        <div class="inform">
11                                <fieldset>
12                                <legend>{% trans "Personal" %}</legend>
13                                        <div class="infldset">
14                                                <dl>
15                                                        <dt>{% trans "Username:" %} </dt>
16                                                        <dd>{{ profile }}</dd>
17                                                        <dt>{% trans "Title" %} </dt>
18                                                        <dd>{{ profile.forum_profile.status }}</dd>
19                                                        <dt>{% trans "Real name:" %} </dt>
20                                                        {% if profile.first_name or profile.last_name %}
21                                                                <dd>{{ profile.first_name }} {{ profile.last_name }}</dd>
22                                                        {% else %}
23                                                                <dd>{% trans "(Unknown)" %}</dd>
24                                                        {% endif %}
25                                                        <dt>{% trans "Location" %} </dt>
26                                                        {% if profile.forum_profile.location %}
27                                                                <dd>{{ profile.forum_profile.location }}</dd>
28                                                        {% else %}
29                                                                <dd>{% trans "(Unknown)" %}</dd>
30                                                        {% endif %}
31                                                        <dt>{% trans "Website:" %} </dt>
32                                                        {% if profile.forum_profile.site %}
33                                                                <dd>{{ profile.forum_profile.site|urlize }}</dd>
34                                                        {% else %}
35                                                                <dd>{% trans "(Unknown)" %}</dd>
36                                                        {% endif %}
37                                                        <dt>{% trans "E-mail:" %} </dt>
38                                                        {% if profile.forum_profile.privacy_permission == 0 %}
39                                                                <dd><a href="mailto:{{ profile.email }}">{{ profile.email }}</a></dd>
40                                                        {% else %}
41                                                                {% if profile.forum_profile.privacy_permission == 1 %}
42                                                                        <dd><a href="{% url djangobb:misc %}?mail_to={{ profile }}">{% trans "Send e-mail" %}</a></dd>
43                                                                {% else %}
44                                                                        <dd>{% trans "(Hidden)" %}</dd>
45                                                                {% endif %}
46                                                        {% endif %}
47                                                </dl>
48                                                <div class="clearer"></div>
49                                        </div>
50                                </fieldset>
51                        </div>
52                        <div class="inform">
53                                <fieldset>
54                                <legend>{% trans "Messaging" %}</legend>
55                                        <div class="infldset">
56                                                <dl>
57                                                        <dt>{% trans "Jabber:" %} </dt>
58                                                        {% if profile.forum_profile.jabber %}
59                                                                <dd>{{ profile.forum_profile.jabber }}</dd>
60                                                        {% else %}
61                                                                <dd>{% trans "(Unknown)" %}</dd>
62                                                        {% endif %}
63                                                        <dt>{% trans "ICQ:" %} </dt>
64                                                        {% if profile.forum_profile.icq %}
65                                                                <dd>{{ profile.forum_profile.icq }}</dd>
66                                                        {% else %}
67                                                                <dd>{% trans "(Unknown)" %}</dd>
68                                                        {% endif %}
69                                                        <dt>{% trans "MSN Messenger:" %} </dt>
70                                                        {% if profile.forum_profile.msn %}
71                                                                <dd>{{ profile.forum_profile.msn }}</dd>
72                                                        {% else %}
73                                                                <dd>{% trans "(Unknown)" %}</dd>
74                                                        {% endif %}
75                                                        <dt>{% trans "AOL IM:" %} </dt>
76                                                        {% if profile.forum_profile.aim %}
77                                                                <dd>{{ profile.forum_profile.aim }}</dd>
78                                                        {% else %}
79                                                                <dd>{% trans "(Unknown)" %}</dd>
80                                                        {% endif %}
81                                                        <dt>{% trans "Yahoo! Messenger:" %} </dt>
82                                                        {% if profile.forum_profile.yahoo %}
83                                                                <dd>{{ profile.forum_profile.yahoo }}</dd>
84                                                        {% else %}
85                                                                <dd>{% trans "(Unknown)" %}</dd>
86                                                        {% endif %}
87                                                </dl>
88                                                <div class="clearer"></div>
89                                        </div>
90                                </fieldset>
91                        </div>
92                        <div class="inform">
93                                <fieldset>
94                                <legend>{% trans "Personality" %}</legend>
95                                        <div class="infldset">
96                                                <dl>
97                                                        <dt>{% trans "Avatar:" %} </dt>
98                                                        {% if profile.forum_profile.avatar %}
99                                                                <dd><img src="{{ profile.forum_profile.avatar.url }}" /></dd>
100                                                        {% else %}
101                                                                <dd>{% trans "(No avatar)" %}</dd>
102                                                        {% endif %}
103                                                        <dt>{% trans "Signature:" %} </dt>
104                                                        {% if profile.forum_profile.signature %}
105                                                                <dd>{{ profile.forum_profile.signature|safe }}</dd>
106                                                        {% else %}
107                                                                <dd>{% trans "(Unknown)" %}</dd>
108                                                        {% endif %}
109                                                </dl>
110                                                <div class="clearer"></div>
111                                        </div>
112                                </fieldset>
113                        </div>
114                        <div class="inform">
115                                <fieldset>
116                                <legend>{% trans "User activity" %}</legend>
117                                        <div class="infldset">
118                                                <dl>
119                                                        <dt>{% trans "Posts:" %} </dt>
120                                                        <dd>{{ profile.forum_profile.post_count }} - <a href="{% url djangobb:search %}?action=show_user&amp;user_id={{ profile.id }}">{% trans "Show all posts" %}</a></dd>
121                                                        <dt>{% trans "Last post:" %} </dt>
122                                                        {% if profile.forum_profile.last_post %}
123                                                                <dd>{{ profile.forum_profile.last_post }}</dd>
124                                                        {% else %}
125                                                                <dd>{% trans "(Unknown)" %}</dd>
126                                                        {% endif %}
127                                                        <dt>{% trans "Registered:" %} </dt>
128                                                        <dd>{{ profile.date_joined|date:"Y-m-d" }}</dd>
129                                                </dl>
130                                                <div class="clearer"></div>
131                                        </div>
132                                </fieldset>
133                        </div>
134                </div>
135        </div>
136</div>
137{% endblock %}
Note: See TracBrowser for help on using the repository browser.