{% if current_user %} {%if current_user.PhotoUrl%}{%endif%} Logout {% else %} Login    Register {% endif %}