{% if package == 'foursight' %} {% else %} {% endif %} {{main_title}} {{load_time}} {% if is_admin %}  |  LOGOUT {% elif not is_admin %}  |  LOGIN {% endif %}
{% if request.context.path.startswith(context + 'info') %} HOME  |  USERS  |  INFO {% elif request.context.path.endswith('/view/' + env) %} HOME  |  USERS  |  INFO {% elif request.context.path.startswith(context + 'users') %} HOME  |  USERS  |  INFO {% else %} HOME  |  USERS  |  INFO {% endif %}  |  AWS {{version}} {% if environments|length > 0 %} {{env}} {% for environment in environments %} {% if environment["name"].upper() == env.upper() or environment["public_name"].upper() == env.upper() or environment["full_name"].upper() == env.upper() or environment["short_name"].upper() == env.upper() or environment["foursight_name"].upper() == env.upper() %} {{environment["public_name"]}}  ✓ {% else %} {{environment["public_name"]}} {% endif %} {% endfor %} {% else %} {{env}} {% endif %}  |  {% if stage == 'prod' %} {{stage}}  |  {% elif stage == 'dev' %} {{stage}}  |  {% else %} {{stage}}  |  {% endif %} {% if is_admin %} {% if logged_in_as["email_address"] %} {{logged_in_as["email_address"]}} {% elif is_running_locally %} local {% else %} admin {% endif %} {% else %} NOT LOGGED IN {% endif %}
This is the legacy Foursight. For the new Foursight React click here. {% if running_checks != '0' or queued_checks != '0' %} running: {{running_checks}}  |  queued: {{queued_checks}} {% endif %}
{% if not is_admin %}
Not logged in. Click here to login. {% if user_record["error"] == "noadmin" or user_record["error"] == "nogroups" %}
Warning: The user {{user_record["email"]}} does not have permission for the {{env}} environment. {% elif user_record["error"] == "exception" %}
Warning: A user record for {{user_record["email"]}} was not found for the {{env}} environment. {% endif %} {% if aws_account_number %}
AWS Account: {{aws_account_number}} {% endif %}
{% else %}
{% block content %}{% endblock %}
{% endif %}
{% block script %}{% endblock %}