templates/user/my_profile.html
author Nishanth Amuluru <nishanth@fossee.in>
Wed, 05 Jan 2011 22:30:45 +0530
changeset 219 f04a1ec7a07f
parent 209 f34052de27f5
permissions -rw-r--r--
Replaced the word credit with pynt
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
24
fcae44e94845 added files edit_profile.html and my_profile.html.
anoop
parents:
diff changeset
     1
{% extends 'base.html' %}
27
8d52492d3c14 changed the view my profile template.
anoop
parents: 24
diff changeset
     2
8d52492d3c14 changed the view my profile template.
anoop
parents: 24
diff changeset
     3
{% block title %}
8d52492d3c14 changed the view my profile template.
anoop
parents: 24
diff changeset
     4
    {{ profile.user }}'s Profile
8d52492d3c14 changed the view my profile template.
anoop
parents: 24
diff changeset
     5
{% endblock %}
8d52492d3c14 changed the view my profile template.
anoop
parents: 24
diff changeset
     6
24
fcae44e94845 added files edit_profile.html and my_profile.html.
anoop
parents:
diff changeset
     7
{% block content %}
27
8d52492d3c14 changed the view my profile template.
anoop
parents: 24
diff changeset
     8
    <!--{{ view_profile_form.as_p }}-->
24
fcae44e94845 added files edit_profile.html and my_profile.html.
anoop
parents:
diff changeset
     9
28
e137b605b888 added browse users functionality, added user/browse.html, fixed view my profile template.
anoop
parents: 27
diff changeset
    10
    <h2>{{ profile }}'s Profile</h2>
e137b605b888 added browse users functionality, added user/browse.html, fixed view my profile template.
anoop
parents: 27
diff changeset
    11
    <hr>
27
8d52492d3c14 changed the view my profile template.
anoop
parents: 24
diff changeset
    12
    {% if edit_profile %}
45
ab8918e654ae added forgot password in template.
anoop
parents: 28
diff changeset
    13
        <a href="/user/edit/">edit profile</a> | <a href="/accounts/password/change">change password</a>
28
e137b605b888 added browse users functionality, added user/browse.html, fixed view my profile template.
anoop
parents: 27
diff changeset
    14
        <hr>
27
8d52492d3c14 changed the view my profile template.
anoop
parents: 24
diff changeset
    15
    {% endif %}
65
8ac0ce6cfd66 added photograph to be shown in my profile page.
anoop
parents: 45
diff changeset
    16
    {% if profile.photo %}
8ac0ce6cfd66 added photograph to be shown in my profile page.
anoop
parents: 45
diff changeset
    17
        <a href={{ profile.photo.url }}>
8ac0ce6cfd66 added photograph to be shown in my profile page.
anoop
parents: 45
diff changeset
    18
        <img border="0" height="200" src={{ profile.photo.url }}>
8ac0ce6cfd66 added photograph to be shown in my profile page.
anoop
parents: 45
diff changeset
    19
        </a>
8ac0ce6cfd66 added photograph to be shown in my profile page.
anoop
parents: 45
diff changeset
    20
    {% endif %}
208
ba839dd7c7d7 admins and managers can see full profile of user, including email, address and phone number.
anoop
parents: 65
diff changeset
    21
    {% if privilege or edit_profile %}
209
f34052de27f5 email address displayed was incorrect, fixed it.
anoop
parents: 208
diff changeset
    22
        <br><h4>E-Mail</h4><hr>{{ profile.user.email }}
208
ba839dd7c7d7 admins and managers can see full profile of user, including email, address and phone number.
anoop
parents: 65
diff changeset
    23
    {% endif %}
27
8d52492d3c14 changed the view my profile template.
anoop
parents: 24
diff changeset
    24
    {% if profile.aboutme %}
8d52492d3c14 changed the view my profile template.
anoop
parents: 24
diff changeset
    25
        <br><h4>About Me</h4><hr>{{ profile.aboutme }}
8d52492d3c14 changed the view my profile template.
anoop
parents: 24
diff changeset
    26
    {% endif %}
8d52492d3c14 changed the view my profile template.
anoop
parents: 24
diff changeset
    27
    {% if profile.nick %}
8d52492d3c14 changed the view my profile template.
anoop
parents: 24
diff changeset
    28
        <br><h4>Nick Name</h4><hr>{{ profile.nick }}
8d52492d3c14 changed the view my profile template.
anoop
parents: 24
diff changeset
    29
    {% endif %}
8d52492d3c14 changed the view my profile template.
anoop
parents: 24
diff changeset
    30
    {% if profile.dob %}
8d52492d3c14 changed the view my profile template.
anoop
parents: 24
diff changeset
    31
        <br><h4>Date of Birth</h4><hr>{{ profile.dob }}
8d52492d3c14 changed the view my profile template.
anoop
parents: 24
diff changeset
    32
    {% endif %}
219
f04a1ec7a07f Replaced the word credit with pynt
Nishanth Amuluru <nishanth@fossee.in>
parents: 209
diff changeset
    33
    {% if profile.pynts %}
f04a1ec7a07f Replaced the word credit with pynt
Nishanth Amuluru <nishanth@fossee.in>
parents: 209
diff changeset
    34
        <br><h4>Pynts</h4><hr>{{ profile.pynts }}
27
8d52492d3c14 changed the view my profile template.
anoop
parents: 24
diff changeset
    35
    {% endif %}
8d52492d3c14 changed the view my profile template.
anoop
parents: 24
diff changeset
    36
    {% if profile.foss_comm %}
8d52492d3c14 changed the view my profile template.
anoop
parents: 24
diff changeset
    37
        <br><h4>Foss Community</h4><hr>{{ profile.foss_comm }}
8d52492d3c14 changed the view my profile template.
anoop
parents: 24
diff changeset
    38
    {% endif %}
208
ba839dd7c7d7 admins and managers can see full profile of user, including email, address and phone number.
anoop
parents: 65
diff changeset
    39
    {% if privilege or edit_profile %}
ba839dd7c7d7 admins and managers can see full profile of user, including email, address and phone number.
anoop
parents: 65
diff changeset
    40
        {% if profile.phonenum %}
ba839dd7c7d7 admins and managers can see full profile of user, including email, address and phone number.
anoop
parents: 65
diff changeset
    41
            <br><h4>Phone Number</h4><hr>{{ profile.phonenum }}
ba839dd7c7d7 admins and managers can see full profile of user, including email, address and phone number.
anoop
parents: 65
diff changeset
    42
        {% endif %}
27
8d52492d3c14 changed the view my profile template.
anoop
parents: 24
diff changeset
    43
    {% endif %}
8d52492d3c14 changed the view my profile template.
anoop
parents: 24
diff changeset
    44
    {% if profile.homepage %}
8d52492d3c14 changed the view my profile template.
anoop
parents: 24
diff changeset
    45
        <br><h4>Homepage</h4><hr>{{ profile.homepage }}
8d52492d3c14 changed the view my profile template.
anoop
parents: 24
diff changeset
    46
    {% endif %}
208
ba839dd7c7d7 admins and managers can see full profile of user, including email, address and phone number.
anoop
parents: 65
diff changeset
    47
    {% if privilege or edit_profile %}
ba839dd7c7d7 admins and managers can see full profile of user, including email, address and phone number.
anoop
parents: 65
diff changeset
    48
        {% if profile.street or profile.city or profile.country %}
ba839dd7c7d7 admins and managers can see full profile of user, including email, address and phone number.
anoop
parents: 65
diff changeset
    49
            <br><h4>Address</h4><hr>
ba839dd7c7d7 admins and managers can see full profile of user, including email, address and phone number.
anoop
parents: 65
diff changeset
    50
            {% if profile.street %}
ba839dd7c7d7 admins and managers can see full profile of user, including email, address and phone number.
anoop
parents: 65
diff changeset
    51
                {{ profile.street }}
ba839dd7c7d7 admins and managers can see full profile of user, including email, address and phone number.
anoop
parents: 65
diff changeset
    52
                <br>
ba839dd7c7d7 admins and managers can see full profile of user, including email, address and phone number.
anoop
parents: 65
diff changeset
    53
            {% endif %}
ba839dd7c7d7 admins and managers can see full profile of user, including email, address and phone number.
anoop
parents: 65
diff changeset
    54
            {% if profile.city %}
ba839dd7c7d7 admins and managers can see full profile of user, including email, address and phone number.
anoop
parents: 65
diff changeset
    55
                {{ profile.city }}
ba839dd7c7d7 admins and managers can see full profile of user, including email, address and phone number.
anoop
parents: 65
diff changeset
    56
                <br>
ba839dd7c7d7 admins and managers can see full profile of user, including email, address and phone number.
anoop
parents: 65
diff changeset
    57
            {% endif %}
ba839dd7c7d7 admins and managers can see full profile of user, including email, address and phone number.
anoop
parents: 65
diff changeset
    58
            {% if profile.country %}
ba839dd7c7d7 admins and managers can see full profile of user, including email, address and phone number.
anoop
parents: 65
diff changeset
    59
                {{ profile.country }}
ba839dd7c7d7 admins and managers can see full profile of user, including email, address and phone number.
anoop
parents: 65
diff changeset
    60
            {% endif %}
27
8d52492d3c14 changed the view my profile template.
anoop
parents: 24
diff changeset
    61
        {% endif %}
208
ba839dd7c7d7 admins and managers can see full profile of user, including email, address and phone number.
anoop
parents: 65
diff changeset
    62
    {% else %}
27
8d52492d3c14 changed the view my profile template.
anoop
parents: 24
diff changeset
    63
    {% endif %}
24
fcae44e94845 added files edit_profile.html and my_profile.html.
anoop
parents:
diff changeset
    64
{% endblock %}