diff --git a/renderer.py b/renderer.py index 43a7351..d60817e 100644 --- a/renderer.py +++ b/renderer.py @@ -347,7 +347,7 @@ def thread_machine_content(machine, machine_content, idx): expiry_parse = parser.parse(machine["expiry"]) expiry_local = expiry_parse.astimezone(timezone) - expiry_delta = local_time - expiry_local + expiry_delta = expiry_local - local_time expiry_print = helper.pretty_print_duration(expiry_delta) expiry_time = str(expiry_local.strftime('%A %m/%d/%Y, %H:%M:%S'))+" "+str(timezone)+" ("+str(expiry_print)+")" @@ -538,12 +538,11 @@ def oidc_nav_dropdown(user_name, email_address, name): html_payload = """ dd +
  • """+name+""" account_circle @@ -556,19 +555,7 @@ def oidc_nav_dropdown(user_name, email_address, name): def oidc_nav_mobile(user_name, email_address, name): # https://materializecss.github.io/materialize/sidenav.html html_payload = """ - - - -
  • - - account_circle - -
  • +

  • exit_to_appLogout
  • """ html_payload = "" return Markup(html_payload) \ No newline at end of file diff --git a/templates/machines.html b/templates/machines.html index 8b9883c..eb351b8 100644 --- a/templates/machines.html +++ b/templates/machines.html @@ -5,6 +5,9 @@ {% block title %} {{ page }} {% endblock %} {% block header %} {{ page }} {% endblock %} +{% block OIDC_NAV_DROPDOWN %} {{ OIDC_NAV_DROPDOWN}} {% endblock %} +{% block OIDC_NAV_MOBILE %} {{ OIDC_NAV_MOBILE }} {% endblock %} + {% block content %}

    {{ cards }} diff --git a/templates/template.html b/templates/template.html index 3e37190..7651837 100644 --- a/templates/template.html +++ b/templates/template.html @@ -92,7 +92,6 @@
  • devices_otherMachines
  • peopleUsers
  • settingsSettings
  • -
    {% block OIDC_NAV_MOBILE %}{% endblock %}