Files
centurion_erp/app/templates/base.html.j2
2025-07-23 07:06:32 +09:30

27 lines
663 B
Django/Jinja

{% load settings_value %}
{% settings_value "SSO_LOGIN_ONLY_BACKEND" as SSO_LOGIN_ONLY_BACKEND %}
<html>
<head>
{% load static %}
<title>{{ content_title | default_if_none:"" }} - {% settings_value "SITE_TITLE" %}</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
{% if SSO_LOGIN_ONLY_BACKEND %}
<meta http-equiv="refresh" content="0; url=/{{ settings.LOGIN_URL }}" />
{% else %}
<link rel="stylesheet" href="{% static 'base.css' %}">
{% block additional-stylesheet %}{% endblock additional-stylesheet %}
{% endif %}
</head>
<body>
{% block body %}{% endblock body %}
</body>
</html>