From 962f7d5f5c05ad630f7e8ed6b7cfa6d5ac082c29 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 22 Nov 2020 21:36:07 +0100 Subject: [PATCH] providers/saml: update modal to pb-modal-button --- .../providers/saml/processors/metadata.py | 2 +- .../providers/saml/admin_metadata_modal.html | 38 +++++++++---------- 2 files changed, 19 insertions(+), 21 deletions(-) diff --git a/passbook/providers/saml/processors/metadata.py b/passbook/providers/saml/processors/metadata.py index e24384c7b..8f8245239 100644 --- a/passbook/providers/saml/processors/metadata.py +++ b/passbook/providers/saml/processors/metadata.py @@ -105,4 +105,4 @@ class MetadataProcessor: for binding in self.get_bindings(): idp_sso_descriptor.append(binding) - return tostring(entity_descriptor).decode() + return tostring(entity_descriptor, pretty_print=True).decode() diff --git a/passbook/providers/saml/templates/providers/saml/admin_metadata_modal.html b/passbook/providers/saml/templates/providers/saml/admin_metadata_modal.html index 606711433..e535dd14e 100644 --- a/passbook/providers/saml/templates/providers/saml/admin_metadata_modal.html +++ b/passbook/providers/saml/templates/providers/saml/admin_metadata_modal.html @@ -1,24 +1,22 @@ {% load i18n %} {% load static %} - - -