Mercurial > agora-palash
view templates/profile/user.djhtml @ 35:290dd9208cc4
Implement editing user profiles and fix bugs related to the login/logout buttons. Implement 403 exception
author | Jordi Gutiérrez Hermoso <jordigh@gmail.com> |
---|---|
date | Mon, 05 Jul 2010 00:31:20 -0500 |
parents | templates/user.djhtml@28a512881850 |
children | bc0137b6c264 |
line wrap: on
line source
{% extends "whitebox.djhtml" %} {% block boxtitle %} {{profile.user.username}} <br/> {% if profile.user = user %} <small> (<a href="{% url agora.apps.profile.views.editprofile user %}"> edit profile </a>) </small> {% endif %} {% endblock boxtitle%} {% block boxcontents %} <div id="userinfo"> {% if profile.user.first_name or profile.user.last_name %} <span class="userfield">Name</span> <span class="userdata">{{name}}</span> <br /> {% endif %} <span class="userfield">Preferred license</span> <span class="userdata">{{profile.preferred_license}}</span> <br /> {% if profile.interests %} <h4> Interests </h4> <p class="userdata"> {{profile.interests}} </p> {% endif %} {% if profile.blurb %} <h4> About {{name}} </h4> <p class="userdata"> {{profile.blurb}} </p> </div> {% endif %} {% endblock boxcontents %} {% block content-related %} {% if bundles or snippets %} <div id="info"> <h3> Contributions by {{name}} </h3> <div class="whitebox"> {% if bundles %} <h5> Bundles </h5> <ul> {% for b in bundles %} <li> <a href="/{{profile.user.username}}/{{b.name}}">{{b.name}} </a></li> {% endfor %} </ul> {% endif %} {% if snippets %} <h5> Snippets </h5> <ul> {% for s in snippets %} <li><a href="/snippet/{{s}}"}{{s}}</a></li> {% endfor %} {% endif %} </ul> </div> </div> {% endif %} {% endblock content-related %}