Mercurial > hg > agora
view templates/profile/user.djhtml @ 36:bc0137b6c264
Shuffle URLs around, make them more consistent
author | Jordi Gutiérrez Hermoso <jordigh@gmail.com> |
---|---|
date | Wed, 07 Jul 2010 09:23:03 -0500 |
parents | 290dd9208cc4 |
children | 349162d0ce19 |
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="{% url agora.apps.bundle.views.detail profile.user b %}"> {{b.name}} </a> </li> {% endfor %} </ul> {% endif %} {% if snippets %} <h5> Snippets </h5> <ul> {% for s in snippets %} {# FIXME: Use an urlconf for snippets #} <li><a href="/snippet/{{s}}"}{{s}}</a></li> {% endfor %} {% endif %} </ul> </div> </div> {% endif %} {% endblock content-related %}