From 0aa2d11f3627a9e2e601aa828ddb394a38fd03ff Mon Sep 17 00:00:00 2001 From: lian Date: Fri, 21 Mar 2025 10:53:18 +0800 Subject: [PATCH] update privacy-policy UI on login page --- media/css/seahub.css | 13 +++++++++++++ seahub/templates/registration/login.html | 13 ++++++++++++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/media/css/seahub.css b/media/css/seahub.css index dab7fcdc2c..cd34740364 100644 --- a/media/css/seahub.css +++ b/media/css/seahub.css @@ -2195,6 +2195,19 @@ a.sf-popover-item { margin-bottom: 5px; } +.login-panel-bottom-divider { + border: 0; + height: 1px; + background-color: #DBDBDB; + margin-top: 20px; + margin-bottom: 15px; +} +.login-panel-bottom-privacy-policy a { + color: #EC8000; + font-size: 12px; +} + + /*myhome*/ #quota-bar { display: block; diff --git a/seahub/templates/registration/login.html b/seahub/templates/registration/login.html index 232215964e..2f6ae73392 100644 --- a/seahub/templates/registration/login.html +++ b/seahub/templates/registration/login.html @@ -118,9 +118,20 @@ html, body, #wrapper { height:100%; } {% trans "Signup" %} {% endif %} + {% if privacy_policy_link or terms_of_service_link %} +
+
+ {% if privacy_policy_link %} + {% trans "Privacy Policy" %} + {% endif %} + + {% if terms_of_service_link %} + {% trans "Terms of Service" %} + {% endif %} +
+ {% endif %} -{% include "snippets/policy_service_link.html" %} {% endblock %} {% block extra_script %}