1 {% extends 'base.html' %} |
|
2 |
|
3 {% block title %} |
|
4 {{ profile.user }}'s Profile |
|
5 {% endblock %} |
|
6 |
|
7 {% block content %} |
|
8 <!--{{ view_profile_form.as_p }}--> |
|
9 |
|
10 <h2>{{ profile }}'s Profile</h2> |
|
11 <hr> |
|
12 {% if edit_profile %} |
|
13 <a href="/user/edit/">edit profile</a> | <a href="/accounts/password/change">change password</a> |
|
14 <hr> |
|
15 {% endif %} |
|
16 {% if profile.photo %} |
|
17 <a href={{ profile.photo.url }}> |
|
18 <img border="0" height="200" src={{ profile.photo.url }}> |
|
19 </a> |
|
20 {% endif %} |
|
21 {% if privilege or edit_profile %} |
|
22 <br><h4>E-Mail</h4><hr>{{ profile.user.email }} |
|
23 {% endif %} |
|
24 {% if profile.aboutme %} |
|
25 <br><h4>About Me</h4><hr>{{ profile.aboutme }} |
|
26 {% endif %} |
|
27 {% if profile.nick %} |
|
28 <br><h4>Nick Name</h4><hr>{{ profile.nick }} |
|
29 {% endif %} |
|
30 {% if profile.dob %} |
|
31 <br><h4>Date of Birth</h4><hr>{{ profile.dob }} |
|
32 {% endif %} |
|
33 {% if profile.credits %} |
|
34 <br><h4>Credits</h4><hr>{{ profile.credits }} |
|
35 {% endif %} |
|
36 {% if profile.foss_comm %} |
|
37 <br><h4>Foss Community</h4><hr>{{ profile.foss_comm }} |
|
38 {% endif %} |
|
39 {% if privilege or edit_profile %} |
|
40 {% if profile.phonenum %} |
|
41 <br><h4>Phone Number</h4><hr>{{ profile.phonenum }} |
|
42 {% endif %} |
|
43 {% endif %} |
|
44 {% if profile.homepage %} |
|
45 <br><h4>Homepage</h4><hr>{{ profile.homepage }} |
|
46 {% endif %} |
|
47 {% if privilege or edit_profile %} |
|
48 {% if profile.street or profile.city or profile.country %} |
|
49 <br><h4>Address</h4><hr> |
|
50 {% if profile.street %} |
|
51 {{ profile.street }} |
|
52 <br> |
|
53 {% endif %} |
|
54 {% if profile.city %} |
|
55 {{ profile.city }} |
|
56 <br> |
|
57 {% endif %} |
|
58 {% if profile.country %} |
|
59 {{ profile.country }} |
|
60 {% endif %} |
|
61 {% endif %} |
|
62 {% else %} |
|
63 {% endif %} |
|
64 {% endblock %} |
|