diff options
author | Adam Hassick <ahassick@iol.unh.edu> | 2021-03-16 14:18:31 -0400 |
---|---|---|
committer | Adam Hassick <ahassick@iol.unh.edu> | 2021-03-17 15:23:00 -0400 |
commit | babedf30038b453ea7d123c9bb744f4acb14e625 (patch) | |
tree | bb34d03e56f134941e85bd374b7c074e2c3727af /src/templates/lfedge/base.html | |
parent | 8a902d357fa6eca07384d25fac32a6e0521a63e5 (diff) |
Added LF Edge template overrides.
Signed-off-by: Adam Hassick <ahassick@iol.unh.edu>
Change-Id: If119646eee67fb7e145c5e92e64fa4f28a947dbe
Diffstat (limited to 'src/templates/lfedge/base.html')
-rw-r--r-- | src/templates/lfedge/base.html | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/src/templates/lfedge/base.html b/src/templates/lfedge/base.html new file mode 100644 index 0000000..64c05a4 --- /dev/null +++ b/src/templates/lfedge/base.html @@ -0,0 +1,45 @@ +{% extends "base/base.html" %} +{% load staticfiles %} +{% block bgColor %} +<style> +.LFEdge { + background: #0049b0; + margin-left: -25px; +} + +.wtext { + font-size: 18px; + color: #FFFFFF; +} + +.wtext:hover { + color: #FFFFFF; + text-decoration: none; +} +</style> +<nav class="navbar navbar-light LFEdge navbar-fixed-top border-bottom py-0 mb-0" role="navigation"> +{% endblock bgColor %} + +{% block logo %} +<div class="barClamp col-12 col-sm order-1 order-sm-2 text-center text-lg-left"> + <a href="https://www.lfedge.org/" class="navbar-brand"> + <img src="{% static "img/lfedge-logo.png" %}"> + </a> + + <a class="wtext d-none d-lg-inline" href={% url 'dashboard:index' %}> + Dashboard + </a> +</div> +{% endblock logo %} +{% block dropDown %} +{% endblock dropDown %} +{% block userDropDownText %} +<a class="nav-link p-0 wtext p-2" data-toggle="dropdown" href="#"> + {% if request.user.username %} + {{request.user.username}} + {% else %} + <i class="fas fa-user"></i> + {% endif %} + <i class="fas fa-caret-down rotate"></i> +</a> +{% endblock userDropDownText %} |