From 55a21838d058bb7b69d9edb26905e4cabe669557 Mon Sep 17 00:00:00 2001 From: Jens Vagelpohl Date: Fri, 8 Mar 2019 13:24:54 +0100 Subject: [PATCH] Resurrected copyright and license page and styled it (#494) --- CHANGES.rst | 3 + src/App/Management.py | 3 + src/App/dtml/copyright.dtml | 107 ++++++++++++++++++++++++++ src/App/dtml/menu.dtml | 3 +- src/zmi/styles/resources/zmi_base.css | 6 ++ 5 files changed, 121 insertions(+), 1 deletion(-) create mode 100644 src/App/dtml/copyright.dtml diff --git a/CHANGES.rst b/CHANGES.rst index 725d9e6cf8..f89df0faaf 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -14,6 +14,9 @@ https://github.com/zopefoundation/Zope/blob/4.0a6/CHANGES.rst Fixes +++++ +- Resurrected copyright and license page + (`#482 `_) + - Fix FindSupport binary value handling (`#406 `_) diff --git a/src/App/Management.py b/src/App/Management.py index 10ef4d72ec..c885bcf95e 100644 --- a/src/App/Management.py +++ b/src/App/Management.py @@ -174,6 +174,9 @@ def manage_page_header(self, *args, **kw): security.declareProtected(view_management_screens, 'manage_navbar') manage_navbar = DTMLFile('dtml/manage_navbar', globals()) + security.declarePublic('zope_copyright') + zope_copyright = DTMLFile('dtml/copyright', globals()) + security.declarePublic('manage_zmi_logout') def manage_zmi_logout(self, REQUEST, RESPONSE): """Logout current user""" diff --git a/src/App/dtml/copyright.dtml b/src/App/dtml/copyright.dtml new file mode 100644 index 0000000000..6ff6a19878 --- /dev/null +++ b/src/App/dtml/copyright.dtml @@ -0,0 +1,107 @@ + + + + + + + + Zope Public License (ZPL) Version 2.1 + + + + + + + + + + + + + + + + + + +
+ +

This software is Copyright © + + Zope Foundation and Contributors. All rights reserved.

+ +

+ This license has been certified as open source. It has also + been designated as GPL compatible by the Free Software + Foundation (FSF). +

+ +

+ Redistribution and use in source and binary forms, with or + without modification, are permitted provided that the + following conditions are met: +

+ +
    +
  1. + Redistributions in source code must retain the + accompanying copyright notice, this list of conditions, + and the following disclaimer. +
  2. +
  3. + Redistributions in binary form must reproduce the accompanying + copyright notice, this list of conditions, and the + following disclaimer in the documentation and/or other + materials provided with the distribution. +
  4. +
  5. + Names of the copyright holders must not be used to + endorse or promote products derived from this software + without prior written permission from the copyright + holders. +
  6. +
  7. + The right to distribute this software or to use it for + any purpose does not give you the right to use + Servicemarks (sm) or Trademarks (tm) of the copyright + holders. Use of them is covered by separate agreement + with the copyright holders. +
  8. +
  9. + If any files are modified, you must cause the modified + files to carry prominent notices stating that you changed + the files and the date of any change. +
  10. +
+ +

Disclaimer

+

+ + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' + AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT + NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN + NO EVENT SHALL THE COPYRIGHT HOLDERS BE + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH + DAMAGE. + +

+ +
+ + + + \ No newline at end of file diff --git a/src/App/dtml/menu.dtml b/src/App/dtml/menu.dtml index e907870542..0984fa9669 100644 --- a/src/App/dtml/menu.dtml +++ b/src/App/dtml/menu.dtml @@ -29,7 +29,8 @@
  • Logout
  • -
  • © Zope Foundation
  • +
  • © Zope Foundation
  • diff --git a/src/zmi/styles/resources/zmi_base.css b/src/zmi/styles/resources/zmi_base.css index 03ead05015..d8829b503a 100644 --- a/src/zmi/styles/resources/zmi_base.css +++ b/src/zmi/styles/resources/zmi_base.css @@ -846,6 +846,12 @@ header.navbar select.form-control-sm, } } +.zmi-zope_copyright h2 { + font-size: 130%; + color: white; + margin: 0; +} + /* EXAMPLE: IMPLANT YOUR LOGO */ /* .zmi-manage_menu {