allow different "return" link

This commit is contained in:
Serghei Mihai 2018-03-13 14:36:14 +01:00
parent 63880836eb
commit 6cff9e16c7
1 changed files with 5 additions and 1 deletions

View File

@ -39,9 +39,13 @@
<div id="header-wrapper" >
<div id="header">
{% block header-top %}
{% if request.partner %}
{% if request.partner or a2_return_url %}
<div id="return">
{% if request.partner %}
<a href="{{ request.partner.url }}" class="highlight" style="color: {{ request.partner.color }}">{{ request.partner.name }}</a>
{% else %}
<a href="{{ a2_return_url }}" class="highlight">Mon compte</a>
{% endif %}
</div>
{% endif %}