Module: check_mk
Branch: master
Commit: 045b65c64e6efd30b4d2882cad65a9ba89c87d6b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=045b65c64e6efd…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Oct 19 14:46:29 2017 +0200
GUI: Show GPL license text on login screen only for raw edition
Change-Id: I0e55adc5501c7f35cd48799f3ac76dadce6254ae
---
web/htdocs/login.py | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/web/htdocs/login.py b/web/htdocs/login.py
index 2c47fc6..4350cee 100644
--- a/web/htdocs/login.py
+++ b/web/htdocs/login.py
@@ -459,10 +459,13 @@ def normal_login_page(called_directly = True):
html.open_div(id_="foot")
html.write("Version: %s - © " % cmk.__version__)
html.a("Mathias Kettner", href="https://mathias-kettner.com")
- html.br()
- html.br()
- html.write(_('You can use, modify and distribute Check_MK under the terms of the
<a href="%s">'
- 'GNU GPL Version 2</a>.') %
"https://mathias-kettner.com/gpl.html")
+
+ if cmk.is_raw_edition():
+ html.br()
+ html.br()
+ html.write(_('You can use, modify and distribute Check_MK under the terms of
the <a href="%s">'
+ 'GNU GPL Version 2</a>.') %
"https://mathias-kettner.com/gpl.html")
+
html.close_div()
html.set_focus('_username')