{% extends "base.html" %} {% block title %}User Details{% endblock %} {% block content %} {% set is_me = False %} {% if identity %} {% set user = identity.get('user') %} {% if user and user.login == person.login %} {% set is_me = True %} {% endif %} {% endif %}

{{person.name|e}}

Project Memberships:

{% if person.projects|length %} {% for membership in person.projects %}
{% if is_me %}

You are a {{membership.role}} on the {{h.link_to(membership.project.name + ' project', h.url(controller='project', project_name=membership.project.name))|e}}.

{% else %}

{{person.name}} is a {{membership.role}} on the {{h.link_to(membership.project.name + ' project', h.url(controller='project', project_name=membership.project.name))|e}}.

{% endif %}
{% endfor %} {% else %} {% if is_me %}

You are not a member of any projects.

{% else %}

{{person.name}} is not a member of any projects.

{% endif %} {% endif %}

Personal Repository:

{{ h.help_link("What's a Personal Repository?", '/what-is/repo-type')}} {% set branches = repo.get_branches() %} {% if is_me %}

Your personal repository has {{branches|length}} branches.

{% else %}

{{person.name}} has {{branches|length}} branches in their personal repository

{% endif %} {% if branches|length %} {% for branch in branches %} {% endfor %}
Branch NameRevisionsActions
{{h.image(h.url('/bzr_icon.png'), 'Bazaar Branch')}} {{branch.get_name()}} {{branch.get_last_revision_number()}} revisions {{h.link_to(h.image(h.url('/application-list.png'), 'Branch Log'), h.url(controller='person', person_name=person.login, action='branch_log', branch_name=branch.get_name()), title="Branch Log")}} {{h.link_to(h.image(h.url('/bin-exclamation.png'), 'Delete Branch'), h.url(controller='person', person_name=person.login, action='delete_branch', branch_name=branch.get_name()), title="Delete Branch", confirm="Are you sure you want to delete the '" + branch.get_name() + "' branch? Branch deletion is permanent!")}}
{% endif %}

SSH Keys

{% if is_me %} {% if person.auth_keys|length %}

You have {{person.auth_keys|length}} Keys stored. {% else %}

You have no SSH Keys. {% endif %} {{ h.link_to('Manage your SSH Keys', h.url(controller='person', action='manage_ssh_keys', person_name=person.login))}}.

{% else %} {% if person.auth_keys|length %}

{{person.name}} has {{person.auth_keys|length}} Keys stored. {% else %}

{{person.name}} has no keys stored. {% endif %} {{ h.link_to('Manage SSH Keys', h.url(controller='person', action='manage_ssh_keys', person_name=person.login))}}.

{% endif %}

New to Sloecode?

You may want some help:
  • {{h.help_link('Getting Started under Windows', 'getting-started-windows')}}
  • {{h.help_link('Getting Started under Linux', 'getting-started-linux')}}
  • {{h.help_link('Recommended Workflow', 'recommended-workflow')}}

If all else fails, please consult the {{ h.link_to('official Bazaar documentation', 'http://doc.bazaar.canonical.com/latest/en/')}}.

{% endblock %}