Skip to content
Snippets Groups Projects
Commit 6af41901 authored by Branson Craig Stephens's avatar Branson Craig Stephens
Browse files

Fixed a bug in base template for non-LVC users.

parent 8fd35daf
No related branches found
No related tags found
No related merge requests found
......@@ -45,7 +45,11 @@ function changeTime(obj, label) {
<li id="nav-userprofile"><a href="{% url "userprofile-home" %}">Options</a></li>
{% endif %}
{% if user %}
<li id="nav-user">Authenticated as: {{ user.first_name }} {{user.last_name }}</li>
{% if user.first_name %}
<li id="nav-user">Authenticated as: {{ user.first_name }} {{user.last_name }}</li>
{% else %}
<li id="nav-user">Authenticated as: {{ user.username }}</li>
{% endif %}
{% else %}
<li id="nav-login"><a href="{{ login_url }}">Login</a></li>
{% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment