Module: check_mk
Branch: master
Commit: b242b760b016760a1e6f113658c11673a0513f9b
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b242b760b01676…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Nov 12 13:33:46 2018 +0100
6857 FIX Fixed broken links in about snapin
Fixed broken links in about snapin and removed version information which is
already shown in the header. The links are now opened in a new window/tab
instead of the right frame.
Change-Id: I66558ef27340696d9039ceab5db117d99391f5ea
---
.werks/6857 | 13 +++++++++++++
cmk/gui/plugins/sidebar/about.py | 16 ++++------------
2 files changed, 17 insertions(+), 12 deletions(-)
diff --git a/.werks/6857 b/.werks/6857
new file mode 100644
index 0000000..5647710
--- /dev/null
+++ b/.werks/6857
@@ -0,0 +1,13 @@
+Title: Fixed broken links in about snapin
+Level: 1
+Component: multisite
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1541779730
+
+Fixed broken links in about snapin and removed version information which is
+already shown in the header. The links are now opened in a new window/tab
+instead of the right frame.
diff --git a/cmk/gui/plugins/sidebar/about.py b/cmk/gui/plugins/sidebar/about.py
index a244ef1..5c2866e 100644
--- a/cmk/gui/plugins/sidebar/about.py
+++ b/cmk/gui/plugins/sidebar/about.py
@@ -24,8 +24,6 @@
# to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
# Boston, MA 02110-1301 USA.
-import cmk
-
from cmk.gui.i18n import _
from cmk.gui.globals import html
from . import SidebarSnapin, snapin_registry, bulletlink
@@ -43,17 +41,11 @@ class About(SidebarSnapin):
@classmethod
def description(cls):
- return _("Version information and Links to webpage, documentation, "
- "and download of Check_MK")
+ return _("Links to webpage, documentation and download of Check_MK")
def show(self):
- html.write(_("Version: ") + cmk.__version__)
html.open_ul()
- bulletlink(_("Homepage"), "https://mathias-kettner.com/index.html")
- bulletlink(_("Documentation"), "https://mathias-kettner.com/cms.html")
- bulletlink(_("Download"), "https://mathias-kettner.com/download.php")
+ bulletlink(_("Homepage"), "https://mathias-kettner.com/check_mk.html", target="_blank")
+ bulletlink(_("Documentation"), "https://mathias-kettner.com/cms.html", target="_blank")
+ bulletlink(_("Download"), "https://mathias-kettner.com/download.php", target="_blank")
html.close_ul()
-
- @classmethod
- def allowed_roles(cls):
- return ["admin", "user", "guest"]