aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates/akraino/base.html
diff options
context:
space:
mode:
authorSawyer Bergeron <sbergeron@iol.unh.edu>2020-06-23 20:58:14 +0000
committerGerrit Code Review <gerrit@opnfv.org>2020-06-23 20:58:14 +0000
commit6a41bf4f6f0b84e84293b7f2649ba60a9c78818f (patch)
treea8169386aca6e64ceb4e0f13895618be55b146e8 /src/templates/akraino/base.html
parent3bd27e99960c16c0a9bcab1533b1e6f15b0c9d9e (diff)
parent596664b37c17b31f2b5faa0d5144e4317179e0ba (diff)
Merge "Enable OpenID"
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