templates/user/my_profile.html
changeset 27 8d52492d3c14
parent 24 fcae44e94845
child 28 e137b605b888
equal deleted inserted replaced
26:7c98e8968691 27:8d52492d3c14
     1 {% extends 'base.html' %}
     1 {% extends 'base.html' %}
       
     2 
       
     3 {% block title %}
       
     4     {{ profile.user }}'s Profile
       
     5 {% endblock %}
       
     6 
     2 {% block content %}
     7 {% block content %}
       
     8     <!--{{ view_profile_form.as_p }}-->
     3 
     9 
     4 {% if edit_profile %}
    10     <h2>{{ profile }}'s Profile</h2><hr>
     5     <a href="/user/edit/">edit my profile</a>
    11     {% if edit_profile %}
     6 {% endif %}
    12         <a href="/user/edit/">edit profile</a>
     7 
    13     {% endif %}
     8 <br>
    14     <hr>
     9 {{ view_profile_form.as_p }}
    15     {% if profile.aboutme %}
    10 
    16         <br><h4>About Me</h4><hr>{{ profile.aboutme }}
       
    17     {% endif %}
       
    18     {% if profile.nick %}
       
    19         <br><h4>Nick Name</h4><hr>{{ profile.nick }}
       
    20     {% endif %}
       
    21     {% if profile.dob %}
       
    22         <br><h4>Date of Birth</h4><hr>{{ profile.dob }}
       
    23     {% endif %}
       
    24     {% if profile.credits %}
       
    25         <br><h4>Credits</h4><hr>{{ profile.credits }}
       
    26     {% endif %}
       
    27     {% if profile.foss_comm %}
       
    28         <br><h4>Foss Community</h4><hr>{{ profile.foss_comm }}
       
    29     {% endif %}
       
    30     {% if profile.phonenum %}
       
    31         <br><h4>Phone Number</h4><hr>{{ profile.phonenum }}
       
    32     {% endif %}
       
    33     {% if profile.homepage %}
       
    34         <br><h4>Homepage</h4><hr>{{ profile.homepage }}
       
    35     {% endif %}
       
    36     {% if profile.street or profile.city or profile.country %}
       
    37         <br><h4>Address</h4><hr>
       
    38         {% if profile.street %}
       
    39             {{ profile.street }}
       
    40             <br>
       
    41         {% endif %}
       
    42         {% if profile.city %}
       
    43             {{ profile.city }}
       
    44             <br>
       
    45         {% endif %}
       
    46         {% if profile.country %}
       
    47             {{ profile.country }}
       
    48         {% endif %}
       
    49     {% endif %}
    11 {% endblock %}
    50 {% endblock %}