From 0f5e6d0d8c821ae973ae69ed90445cca5e422883 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 6 Feb 2021 18:07:24 +0100 Subject: [PATCH] api: add dark theme for API Browser --- .../api/templates/rest_framework/api.html | 24 +++++++++++++++++++ .../providers/saml/admin_metadata_modal.html | 22 ----------------- 2 files changed, 24 insertions(+), 22 deletions(-) delete mode 100644 authentik/providers/saml/templates/providers/saml/admin_metadata_modal.html diff --git a/authentik/api/templates/rest_framework/api.html b/authentik/api/templates/rest_framework/api.html index aa3e2c319..2e3e5db96 100644 --- a/authentik/api/templates/rest_framework/api.html +++ b/authentik/api/templates/rest_framework/api.html @@ -1,7 +1,31 @@ {% extends "rest_framework/base.html" %} +{% block title %}{% if name %}{{ name }} – {% endif %}authentik{% endblock %} + {% block branding %} authentik {% endblock %} + +{% block style %} +{{ block.super }} + +{% endblock %} diff --git a/authentik/providers/saml/templates/providers/saml/admin_metadata_modal.html b/authentik/providers/saml/templates/providers/saml/admin_metadata_modal.html deleted file mode 100644 index b21ff7160..000000000 --- a/authentik/providers/saml/templates/providers/saml/admin_metadata_modal.html +++ /dev/null @@ -1,22 +0,0 @@ -{% load i18n %} - - - -
-
-

{% trans 'Metadata' %}

-
- - -
-
-