Link the name of a logged-in user to his profile page. Application of patch from production.

- Legacy-Id: 7629
This commit is contained in:
Henrik Levkowetz 2014-04-22 21:38:43 +00:00
parent bf1e44864d
commit 53b49d7777

View file

@ -63,7 +63,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
<a href="https://{{ request.get_host }}/accounts/login/" class="login" rel="nofollow">Sign in</a>
{% else %}
{% if user.is_authenticated %}
{{ user }} | <a href="/accounts/logout/" class="login" rel="nofollow">Sign out</a>
<a href="/accounts/">{{ user }}</a> | <a href="/accounts/logout/" class="login" rel="nofollow">Sign out</a>
{% else %}
<a href="https://{{ request.get_host }}/accounts/login/?next={{request.get_full_path|urlencode}}" class="login" rel="nofollow">Sign in</a>
{% endif %}