4
4
5
5
{% block page_content %}
6
6
< div class ="page-header ">
7
- < h1 > {{ user.username }}</ h1 >
8
- {% if user.name or user.location %}
9
- < p >
10
- {% if user.name %}{{ user.name }}{% endif %}
11
- {% if user.location %}
12
- from < a href ="http://maps.google.com/?q={{ user.location }} "> {{ user.location }}</ a >
13
- {% endif %}
14
- </ p >
15
- {% endif %}
16
- {% if current_user.is_administrator() %}
17
- < p > < a href ="mailto:{{ user.email }} "> {{ user.email }}</ a > </ p >
18
- {% endif %}
19
- {% if user.about_me %}< p > {{ user.about_me }}</ p > {% endif %}
20
- < p > Member since {{ moment(user.member_since).format('L') }}. Last seen {{ moment(user.last_seen).fromNow() }}.</ p >
21
- < p >
22
- {% if user == current_user %}
23
- < a class ="btn btn-default " href ="{{ url_for('.edit_profile') }} "> Edit Profile</ a >
7
+ < img class ="img-rounded profile-thumbnail " src ="{{ user.gravatar(size=256) }} ">
8
+ < div class ="profile-header ">
9
+ < h1 > {{ user.username }}</ h1 >
10
+ {% if user.name or user.location %}
11
+ < p >
12
+ {% if user.name %}{{ user.name }}< br > {% endif %}
13
+ {% if user.location %}
14
+ from < a href ="http://maps.google.com/?q={{ user.location }} "> {{ user.location }}</ a > < br >
15
+ {% endif %}
16
+ </ p >
24
17
{% endif %}
25
18
{% if current_user.is_administrator() %}
26
- < a class =" btn btn-danger " href ="{{ url_for('.edit_profile_admin', id= user.id) }} "> Edit Profile [Admin] </ a >
19
+ < p > < a href ="mailto: {{ user.email }} "> {{ user.email }} </ a > </ p >
27
20
{% endif %}
28
- </ p >
21
+ {% if user.about_me %}< p > {{ user.about_me }}</ p > {% endif %}
22
+ < p > Member since {{ moment(user.member_since).format('L') }}. Last seen {{ moment(user.last_seen).fromNow() }}.</ p >
23
+ < p >
24
+ {% if user == current_user %}
25
+ < a class ="btn btn-default " href ="{{ url_for('.edit_profile') }} "> Edit Profile</ a >
26
+ {% endif %}
27
+ {% if current_user.is_administrator() %}
28
+ < a class ="btn btn-danger " href ="{{ url_for('.edit_profile_admin', id=user.id) }} "> Edit Profile [Admin]</ a >
29
+ {% endif %}
30
+ </ p >
31
+ </ div >
29
32
</ div >
30
33
{% endblock %}
0 commit comments