Module: check_mk
Branch: master
Commit: 071197f559317b5c66162c4c8c4189725063cc1b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=071197f559317b…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Mar 3 15:59:27 2016 +0100
Added nicer edit icon into table of WATO snapshots
This makes the GUI more consistent
---
web/htdocs/wato.py | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index e590b5f..b241f76 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -5333,9 +5333,13 @@ def mode_snapshot(phase):
continue
status = get_snapshot_status(name)
table.row()
- # Snapshot name
- table.cell(_("From"), '<a
href="%s">%s</a>' %
-
(folder_preserving_link([("mode","snapshot_detail"),("_snapshot_name",
name)]), status["name"]))
+ snapshot_url =
html.makeuri_contextless([("mode","snapshot_detail"),("_snapshot_name",
name)])
+
+ table.cell("", css="buttons")
+ html.icon_button(snapshot_url, _("Details and actions of this
snapshot"), "edit")
+
+ # Date
+ table.cell(_("From"), status["name"])
# Comment
table.cell(_("Comment"),
status.get("comment",""))