This is the worst if statement ever.

master
Nick Sergeant 2016-11-02 16:41:25 -04:00
parent 4c5d89212c
commit c438c1e2e0
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@
{% if request.user == user and not request.user.is_active and not public %}
Welcome! Please <a target="_self" href="/account/activate/">activate your account</a> to create your first snipt.
{% else %}
{% if request.user == user %}
{% if request.user == user and request.user.is_authenticated %}
Welcome! Create your first snipt by clicking "Add Snipt" above.
{% else %}
No snipts to show here. Sorry!
@ -46,7 +46,7 @@
{% if request.user == user and not request.user.is_active and not public %}
Welcome! Please <a target="_self" href="/account/activate/">activate your account</a> to create your first snipt.
{% else %}
{% if request.user == user %}
{% if request.user == user and request.user.is_authenticated %}
Welcome! Create your first snipt by clicking "Add Snipt" above.
{% else %}
No snipts to show here. Sorry!