From 3e10ff259f718718231b8bf66b70248f6b5ff289 Mon Sep 17 00:00:00 2001 From: Andrea Ranaldi Date: Wed, 11 Aug 2021 15:31:01 +0200 Subject: [PATCH 1/3] Updated MarkupSafe, fix #33 --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index f3d487e1..b6f27562 100644 --- a/requirements.txt +++ b/requirements.txt @@ -17,7 +17,7 @@ importlib-metadata==1.5.0 jinja2>=2.11.3 ldap3==2.7 Mako==1.1.2 -MarkupSafe==1.1.1 +MarkupSafe==2.0.1 more-itertools==8.2.0 oic==1.2.1 packaging==20.1 From 8d130ae9ed8b005f708499c4f07bace43cb937d1 Mon Sep 17 00:00:00 2001 From: Andrea Ranaldi Date: Wed, 11 Aug 2021 15:38:39 +0200 Subject: [PATCH 2/3] reindent templates, removed unclosed p tag, fix #38 --- example/templates/spid_base.html | 618 ++++++++++++------------ example/templates/spid_login_error.html | 26 +- 2 files changed, 321 insertions(+), 323 deletions(-) diff --git a/example/templates/spid_base.html b/example/templates/spid_base.html index b8b7a4b6..e7d40f14 100644 --- a/example/templates/spid_base.html +++ b/example/templates/spid_base.html @@ -1,360 +1,360 @@ - - - - - - + + + + + + - {% block page_title %}{% endblock page_title %} + {% block page_title %}{% endblock page_title %} - - - - + + + + - + - + - {% block extra_head %} {% endblock %} + {% block extra_head %} {% endblock %} - - + + -
+
- + - -
-
-
- +
- + -
-
-
-
-
+
+ +
+
+
+
- +
+
- - - - - - {% block extra_scripts %} {% endblock %} + +
+
+ {% block container %} {% endblock %} +
+
- + + + + + + + + + + + {% block extra_scripts %} {% endblock %} + + diff --git a/example/templates/spid_login_error.html b/example/templates/spid_login_error.html index ef45f092..20ec8c55 100644 --- a/example/templates/spid_login_error.html +++ b/example/templates/spid_login_error.html @@ -1,21 +1,19 @@ {% extends 'spid_base.html' %} - -{% block page_title %} + {% block page_title %} - Errore SPID + Errore SPID -{% endblock page_title %} + {% endblock page_title %} {% block container %} -
-
- Errore di autenticazione -
-

-

{{ message }}

- {% if troubleshoot %} -

{{ troubleshoot }}

- {% endif %} -

+
+
+ Errore di autenticazione
+

{{ message }}

+ {% if troubleshoot %} +

{{ troubleshoot }}

+ {% endif %} +

+
{% endblock %} From 8bcfb5038fff72eaf616cd46aadaf93de4bd188f Mon Sep 17 00:00:00 2001 From: Andrea Ranaldi Date: Wed, 11 Aug 2021 15:44:24 +0200 Subject: [PATCH 3/3] Added SPID and AGID logos, fix #37 --- example/static/disco.html | 1 + example/static/spid/spid-agid-logo-lb.png | Bin 0 -> 6011 bytes 2 files changed, 1 insertion(+) create mode 100644 example/static/spid/spid-agid-logo-lb.png diff --git a/example/static/disco.html b/example/static/disco.html index 63502d49..bc5861d2 100644 --- a/example/static/disco.html +++ b/example/static/disco.html @@ -270,6 +270,7 @@

Benvenuto in Nome Organizzazione Spid Discovery Service

+

logo SPID e AGID

diff --git a/example/static/spid/spid-agid-logo-lb.png b/example/static/spid/spid-agid-logo-lb.png new file mode 100644 index 0000000000000000000000000000000000000000..44b841623f0d0aed40e5de7e8d9ffbb225f5e3fc GIT binary patch literal 6011 zcmV->7li1EP)(_`g8%^e{{R4h=>PzAFaQARU;qF*m;eA5Z<1fd zMgRa80ZBwbRCwC#oq3p4<(0;Nx3;d{yIE~SSp-2*6cvnUFhOy5j8T&@M#rcbHBMY( zG@H?h$w)Mg#?fqQqQ-rR8$qMEp=^pMASl?ZA~fCfzSW*T?t7=czTE1nrn^CA>O4<9 zUCUj*`+es<=RM24Z5?~UN&H`uR5C@fGeOnqqbMC;L98j7`_2{wD+;Kcvx&Mnng2cVmF5 zz=-_9LS95`A#GQNRqq59|f}1y}_f2pk8* zfyuxkv4`6H3gsma^u7?wBHj|CY{CE<->oIy7PG;g>a#Npm#5wWd<7^0mIC!+3IKIL zM8>3E+y5J|1Xuukm|v*8yRcue&DSHQ>e?!6U1@H|jPSKi{& z@qf@yt8^%EhhtlTvs|Ic$-s{^CUabtUQx}@D&RG}a+OPf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