error="User <strong>%s</strong> does not belong to any peer or organization. It is not possible to create new firewall rules.<br>Please contact Helpdesk to resolve this issue"%request.user.username
error="User <strong>%s</strong> does not belong to any peer or organization. It is not possible to create new firewall rules.<br>Please contact Helpdesk to resolve this issue"%user.username
<spanclass="topmenuaction"><ahref="{% url logout %}">{% trans "Logout" %}</a></span>
{% else %}
{% if error %}
<spanclass="topmenuaction relogin"title="{% trans 'After clicking Retry Login, it is strongly suggested to close your browser and visit the page again' %}"><ahref="{% url logout %}">{% trans "Retry Login" %}</a></span>
{% else %}
<spanclass="topmenuaction"><ahref="{% url login %}">{% trans "Shibboleth Login" %}</a></span>
<spanclass="topmenuuser">{% trans "Welcome" %} <strong>{{user}}</strong></span>
{% endif %}
{% if user.is_authenticated %}
<spanclass="topmenuaction"><ahref="{% url user-profile %}">{% trans "My profile" %}</a></span>
{% if user.is_superuser %}
<spanclass="topmenuaction"><ahref="{% url admin:index %}">{% trans "Admin" %}</a></span>
{% endif %}
<spanclass="topmenuaction"><ahref="{% url logout %}">{% trans "Logout" %}</a></span>
{% else %}
<spanclass="topmenuaction relogin"title="After clicking Retry Login, it is strongly suggested to close your browser and visit the page again"><ahref="{% url logout %}">{% trans "Retry Login" %}</a></span>