navigator.userAgent =

uid = {% if uid %} {{ uid }} {% else %} NO UID {% endif %}

user:

{% if user %}
{{ user }}
{% else %}
NO USER
{% endif %}