freehg / templates / user_detail.html

{% extends "base.html" %}

{% block title %}{{ view_user.get_full_name }} ({{view_user.username}}){% endblock %}

{% block content %}

{% comment %} TODO this template has a lot of overlap with the profile.html template.  Perhaps some of it should be moved to inclusion tags?{% endcomment %}

<div id="display-profile" class="span-8 box">
    <dt>"Real" name:</dt>
        <dd>{% if view_user.get_full_name %}{{view_user.get_full_name}}{% else %}Humanoid#001634{{}} {% ifequal user view_user %}(<a href="/accounts/profile/#change-profile">Name yourself</a>){% else %}(This user has not told us his/her/its name.){% endifequal %}{%endif%}</dd>
{% ifequal user view_user %}
        <a href="/accounts/profile/#change-profile">Edit your profile.</a>
    {% endifequal %}

{% comment %} TODO add last change time? {% endcomment %}
{% if view_user.repo_set.count %}
<div class="span-14 clear">
    {% for repo in view_user.repo_set.all %}
        <tr><td><a href="{{repo.get_absolute_url}}">
        {% ifequal user view_user %}
            <td><a href="{{repo.get_absolute_url}}edit/">edit</a> | <a href="{{repo.get_absolute_url}}delete/">delete</a></td></tr>
        {% endifequal %}
    {% endfor %}
{% else %}
This user has not created any repositories.
{% endif %}

{% comment %} TODO add a create repository form here?{% endcomment %}

{% endblock %}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.