aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates/akraino/base.html
diff options
context:
space:
mode:
authorssmith <ssmith@iol.unh.edu>2020-06-18 18:30:39 -0400
committerssmith <ssmith@iol.unh.edu>2020-06-23 12:31:15 -0400
commit596664b37c17b31f2b5faa0d5144e4317179e0ba (patch)
tree77f73b960d3486cc3da8fc1d60bfd81ce17ca588 /src/templates/akraino/base.html
parentf96012fae9a106228ad80671a8c66476834a50db (diff)
Enable OpenID
Signed-off-by: Sean Smith <ssmith@iol.unh.edu> Change-Id: I4397976dbafce1d9d1cccc52f0e705891e59153a
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