<a href='{% url "logout" %}{% if logout_to %}?next={{ logout_to }}{% endif %}'>{% trans "Log Out" %}</a>
{% else %}
-{% url "login" as login_url %}
+{% url "cas_ng_login" as login_url %}
{% ifnotequal login_url request.path %}
<a href='{{ login_url }}'>{% trans "Log In" %}</a>
{% endifnotequal %}