{% 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 %}
{% if token %}
{% url 'account-index' token=token as account_url %}
{% else %}
{% url 'account-index' as account_url %}
{% endif %}
{% menu_item "account2" _("Personal details") account_url %}
{% if not token and not readonly %}
{% ifswitch TWOFACTOR %}
{% url 'device-list' as device_url %}
{% menu_item "devices" _("Authentication Devices") device_url %}
{% endifswitch %}
{% url 'applications' as applications_url %}
{% menu_item "applications" _("Applications") applications_url %}
{% endif %}