aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--alphabetlearning/templates/base.html13
1 files changed, 13 insertions, 0 deletions
diff --git a/alphabetlearning/templates/base.html b/alphabetlearning/templates/base.html
index ded8675..faadcd5 100644
--- a/alphabetlearning/templates/base.html
+++ b/alphabetlearning/templates/base.html
@@ -81,6 +81,14 @@
<!-- </div> -->
</li>
<li class="nav-item">
+ {% if request.user.is_authenticated %}
+ <a class="nav-link text-gray fw-bold" href="{% url "users:detail" request.user.id %}">{{ request.user }}</a>
+ {% else %}
+ <a class="nav-link text-dark fw-bold" href="{% url "account_login" %}">Log in</a>
+ {% endif %}
+ </li>
+
+ <li class="nav-item">
<a class="nav-link text-dark fw-bold" href="{% url "resources:resource_list" %}">Resources</a>
</li>
<li class="nav-item">
@@ -96,6 +104,11 @@
<a class="nav-link text-dark fw-bold" href="https://blog.joannalemon.com"
target="_blank">Blog</a>
</li>
+ <li>
+ {% if request.user.is_authenticated %}
+ <a class="nav-link text-gray fw-bold" href="{% url "account_logout" %}">Log out</a>
+ {% endif %}
+ </li>
</ul>
</div>
</div>