aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates/akraino/base.html
diff options
context:
space:
mode:
authorSawyer Bergeron <sbergeron@iol.unh.edu>2020-08-11 19:14:42 +0000
committerAdam Hassick <ahassick@iol.unh.edu>2020-12-04 14:20:41 -0500
commitaa4c5be520939d1e5f45015033a03981477b966a (patch)
tree1742c571ce002ed160c84a7584ef3c048f41e9e4 /src/templates/akraino/base.html
parent6e7d8af810619e7ea3d14a612c735892c5ff1a84 (diff)
Revert "Revert "Enable OpenID""
This reverts commit 57d1635845df4a8b045805b66e8fbec5010ce97f. Reason for revert: <INSERT REASONING HERE> Change-Id: I18b59409bc5b89ac5b82f767e7af52c43ae668b8 Signed-off-by: Sawyer Bergeron <sbergeron@iol.unh.edu>
Diffstat (limited to 'src/templates/akraino/base.html')
-rw-r--r--src/templates/akraino/base.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/templates/akraino/base.html b/src/templates/akraino/base.html
index 1368476..b93dcd2 100644
--- a/src/templates/akraino/base.html
+++ b/src/templates/akraino/base.html
@@ -22,3 +22,23 @@
{% endblock logo %}
{% block dropDown %}
{% endblock dropDown %}
+
+{% block login %}
+ <div class="dropdown-menu dropdown-menu-right">
+ {% if user.is_authenticated %}
+ <a href="{% url 'account:settings' %}" class="text-dark dropdown-item">
+ <i class="fas fa-cog"></i>
+ Settings
+ </a>
+ <a href="{% url 'oidc_logout' %}" class="text-dark dropdown-item">
+ <i class="fas fa-sign-out-alt"></i>
+ Logout
+ </a>
+ {% else %}
+ <a href="{% url 'oidc_authentication_init' %}" class="text-dark dropdown-item">
+ <i class="fas fa-sign-in-alt"></i>
+ Login with LFID
+ </a>
+ {% endif %}
+ </div>
+{% endblock login %} \ No newline at end of file