{% load helpers %} {% load static %} {% if request.user.is_authenticated %} {% with is_apple_os=request.META.HTTP_USER_AGENT|split:'Mac OS X'|length|divisibleby:'2' %} {% endwith %}
{% else %} {% url settings.LOGIN_URL as login_url %} {% if request.path != login_url %}
Log in
{% endif %} {% endif %}