summaryrefslogtreecommitdiffstats
path: root/askbot/skins/default/templates/user_profile/user_info.html
blob: 6c6868c7a194cc57e3a658ef4da356abad470875 (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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<!-- user_info.html -->
{% import "macros.html" as macros %}
<table class="user-info-table">
    <tr>
        <td style="vertical-align:top;text-align:center;">
            <div class='avatar'>
                {{ macros.gravatar(view_user, 128) }}
                {% if request.user == view_user %}
                    <p><a 
                        {% if support_custom_avatars %}
                            href="{% url avatar_change %}"
                        {% else %}
                            href="{% url faq %}#gravatar"
                        {% endif %}
                    >{% trans %}change picture{% endtrans %}</a></p>
                    {% if support_custom_avatars %}
                    <p><a 
                        href="{% url avatar_delete %}"
                        >{% trans %}remove{% endtrans %}</a>
                    </p>
                    {% endif %}
                {% endif %}
            </div>
            <div class="scoreNumber">{{view_user.reputation|intcomma}}</div>
            <p><b style="color:#777;">{% trans %}reputation{% endtrans %}</b></p>
        </td>
        <td width="360" style="padding-left:5px;vertical-align: top;">
            <table class="user-details">
                {% if request.user == view_user %}
                <tr>
                    <td class="user-profile-tool-links" align="left" colspan="2">
                        <a href="{% url edit_user view_user.id %}">
                            {% trans %}update profile{% endtrans %}
                        </a>
                        {% if request.user == view_user %}
                            | <a href="{% url user_signin %}?next={% url user_signin %}">
                                {% trans %}manage login methods{% endtrans %}
                            </a>
                        {% endif %}
                    </td>
                </tr>  
                {% endif %}
                <tr>
                    <th colspan="2" align="left">
                    <h3>{{user_status_for_display}}</h3>
                    </th>
                </tr>
                {% if view_user.real_name %}
                <tr>
                    <td>{% trans %}real name{% endtrans %}</td>
                    <td><b>{{view_user.real_name}}</b></td>
                </tr>
                {% endif %}
                <tr>
                    <td>{% trans %}member for{% endtrans %}</td>
                    <td><strong>{{ view_user.date_joined|diff_date }}</strong></td>
                </tr>
                {% if view_user.last_seen %}
                <tr>
                    <td>{% trans %}last seen{% endtrans %}</td>
                    <td><strong title="{{ view_user.last_seen }}">{{view_user.last_seen|diff_date}}</strong></td>
                </tr>
                {% endif %}
                {% if view_user.website %}
                <tr>
                    <td>{% trans %}user website{% endtrans %}</td>
                    <td>{{ macros.user_website_link(view_user, max_display_length = 30) }}</td>
                </tr>
                {% endif  %}
                {% if view_user.location or view_user.country %}
                <tr>
                    <td>{% trans %}location{% endtrans %}</td>
                    <td>{{ macros.user_full_location(view_user) }}</td>
                </tr>
                {% endif %}
                {% if view_user.date_of_birth%}
                <tr>
                <!--todo  - redo this with whole sentence translation -->
                    <td>{% trans %}age{% endtrans %}</td>
                    <td>{{view_user.date_of_birth|get_age}} {% trans %}age unit{% endtrans %}</td>
                </tr>
                {% endif %}
                {#
        <!--
                {% if votes_today_left %}
                <tr>
                    <td>{% trans "todays unused votes" %}</td>
                    <td><strong class="darkred">{{ votes_today_left }}</strong> {% trans "votes left" %}</td>
                </tr>
                {% endif %}
        -->
                #}
            </table>
        </td>
        <td width="380">
            <div class="user-about">
            {% if view_user.about %}
                {{view_user.about|linebreaks}}
            {% endif %}
            </div>
        </td>
    </tr>
</table>
<!-- end user_info.html -->