{% comment %}
Copyright 2010, 2012 Canonical Ltd. This software is licensed under
the GNU Affero General Public License version 3 (see the file
LICENSE).
{% endcomment %}
{% load gargoyle_tags %}
{% load i18n %}
{% load menu_item %}
{% menu_item "account" user.displayname "./" %}
{% if token and not readonly %}
{% menu_item "edit" _("Edit") "./+edit" %}
{% endif %}
{% if not token and not readonly %}
{% ifswitch TWOFACTOR %}
{% menu_item "devices" _("Authentication Devices") "/device-list" %}
{% endifswitch %}
{% menu_item "applications" _("Applications") "/+applications" %}
{% endif %}
{% menu_item "logout" _("Log out") "./+logout" %}