Module: check_mk
Branch: master
Commit: 59884da87469097cf1fa843b914aa4330d87e2c1
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=59884da8746909…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Nov 17 11:15:34 2011 +0100
WATO: unified buttons, use icons
---
web/htdocs/images/button_clone_hi.png | Bin 0 -> 2365 bytes
web/htdocs/images/button_clone_lo.png | Bin 0 -> 3005 bytes
web/htdocs/images/button_download_hi.png | Bin 0 -> 3255 bytes
web/htdocs/images/button_download_lo.png | Bin 0 -> 3986 bytes
web/htdocs/images/button_edithost_hi.png | Bin 2795 -> 0 bytes
web/htdocs/images/button_restore_hi.png | Bin 0 -> 2063 bytes
web/htdocs/images/button_restore_lo.png | Bin 0 -> 2484 bytes
.../{button_edithost_lo.png => icon_edit.png} | Bin 3408 -> 3408 bytes
web/htdocs/wato.py | 34 ++++++++++----------
9 files changed, 17 insertions(+), 17 deletions(-)
diff --git a/web/htdocs/images/button_clone_hi.png
b/web/htdocs/images/button_clone_hi.png
new file mode 100644
index 0000000..3d2c769
Binary files /dev/null and b/web/htdocs/images/button_clone_hi.png differ
diff --git a/web/htdocs/images/button_clone_lo.png
b/web/htdocs/images/button_clone_lo.png
new file mode 100644
index 0000000..bc10ac0
Binary files /dev/null and b/web/htdocs/images/button_clone_lo.png differ
diff --git a/web/htdocs/images/button_download_hi.png
b/web/htdocs/images/button_download_hi.png
new file mode 100644
index 0000000..83c4dde
Binary files /dev/null and b/web/htdocs/images/button_download_hi.png differ
diff --git a/web/htdocs/images/button_download_lo.png
b/web/htdocs/images/button_download_lo.png
new file mode 100644
index 0000000..4164108
Binary files /dev/null and b/web/htdocs/images/button_download_lo.png differ
diff --git a/web/htdocs/images/button_edithost_hi.png
b/web/htdocs/images/button_edithost_hi.png
deleted file mode 100644
index fb33ba5..0000000
Binary files a/web/htdocs/images/button_edithost_hi.png and /dev/null differ
diff --git a/web/htdocs/images/button_restore_hi.png
b/web/htdocs/images/button_restore_hi.png
new file mode 100644
index 0000000..22d569f
Binary files /dev/null and b/web/htdocs/images/button_restore_hi.png differ
diff --git a/web/htdocs/images/button_restore_lo.png
b/web/htdocs/images/button_restore_lo.png
new file mode 100644
index 0000000..321e824
Binary files /dev/null and b/web/htdocs/images/button_restore_lo.png differ
diff --git a/web/htdocs/images/button_edithost_lo.png b/web/htdocs/images/icon_edit.png
similarity index 100%
rename from web/htdocs/images/button_edithost_lo.png
rename to web/htdocs/images/icon_edit.png
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 345a205..bcaa15b 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -719,7 +719,7 @@ def mode_folder(phase):
global_buttons()
if config.may("wato.rulesets") or config.may("wato.seeall"):
html.context_button(_("Rulesets"),
make_link([("mode", "rulesets")]), "rulesets")
- html.context_button(_("Folder Properties"),
make_link_to([("mode", "editfolder")], g_folder),
"properties")
+ html.context_button(_("Folder Properties"),
make_link_to([("mode", "editfolder")], g_folder), "edit")
if config.may("wato.manage_folders"):
html.context_button(_("New folder"),
make_link([("mode", "newfolder")]), "newfolder")
if config.may("wato.manage_hosts"):
@@ -935,7 +935,7 @@ def show_subfolders(folder):
enter_url = make_link_to([("mode", "folder")], entry)
html.write("<td class=buttons>")
- icon_button(edit_url, _("Edit the properties of this folder"),
"folderproperties")
+ icon_button(edit_url, _("Edit the properties of this folder"),
"edit")
if config.may("wato.manage_folders"):
icon_button(delete_url, _("Delete this folder"),
"delete")
html.write("</td>")
@@ -1085,7 +1085,7 @@ def show_hosts(folder):
html.write('</td>\n')
html.write("<td class=buttons>")
- icon_button(edit_url, _("Edit the properties of this host"),
"edithost")
+ icon_button(edit_url, _("Edit the properties of this host"),
"edit")
icon_button(services_url, _("Edit the services of this host, do an
inventory"), "services")
if config.may("wato.manage_hosts"):
icon_button(clone_url, _("Create a clone of this host"),
"insert")
@@ -3992,10 +3992,10 @@ def mode_snapshot(phase):
html.write('<tr class="data %s0"><td>' %
odd)
# Buttons
- html.buttonlink(make_action_link(
-
[("mode","snapshot"),("_restore_snapshot", name)]),
_("Restore"))
- html.buttonlink(make_action_link(
- [("mode","snapshot"),("_delete_file",
name)]), _("Delete"))
+ icon_button(make_action_link(
+
[("mode","snapshot"),("_restore_snapshot", name)]),
_("Restore"), "restore")
+ icon_button(make_action_link(
+ [("mode","snapshot"),("_delete_file",
name)]), _("Delete"), "delete")
html.write("<td>")
# Snapshot name
@@ -5206,8 +5206,8 @@ def mode_groups(phase, what):
edit_url = make_link([("mode", "edit_%s_group" % what),
("edit", name)])
delete_url = html.makeactionuri([("_delete", name)])
html.write("<td class=buttons>")
- html.buttonlink(edit_url, _("Properties"))
- html.buttonlink(delete_url, _("Delete"))
+ icon_button(edit_url, _("Properties"), "edit")
+ icon_button(delete_url, _("Delete"), "delete")
html.write("</td><td>%s</td><td>%s</td>"
% (name, alias))
if what == "contact":
html.write("<td>%s</td>" % ", ".join(
@@ -5426,8 +5426,8 @@ def mode_timeperiods(phase):
delete_url = html.makeactionuri([("_delete", name)])
html.write("<td class=buttons>")
- html.buttonlink(edit_url, _("Properties"))
- html.buttonlink(delete_url, _("Delete"))
+ icon_button(edit_url, _("Properties"), "edit")
+ icon_button(delete_url, _("Delete"), "delete")
html.write("</td>")
html.write("<td>%s</td>" % name)
@@ -5873,8 +5873,8 @@ def mode_sites(phase):
edit_url = make_link([("mode", "edit_site"),
("edit", id)])
delete_url = html.makeactionuri([("_delete", id)])
html.write("<td class=buttons>")
- html.buttonlink(edit_url, _("Properties"))
- html.buttonlink(delete_url, _("Delete"))
+ icon_button(edit_url, _("Properties"), "edit")
+ icon_button(delete_url, _("Delete"), "delete")
# Alias
html.write("</td><td>%s</td><td>%s</td>"
% (id, site.get("alias", "")))
@@ -6934,8 +6934,8 @@ def mode_users(phase):
edit_url = make_link([("mode", "edit_user"),
("edit", id)])
delete_url = html.makeactionuri([("_delete", id)])
html.write("<td class=buttons>")
- html.buttonlink(edit_url, _("Properties"))
- html.buttonlink(delete_url, _("Delete"))
+ icon_button(edit_url, _("Properties"), "edit")
+ icon_button(delete_url, _("Delete"), "delete")
html.write("</td>")
# ID
@@ -7499,8 +7499,8 @@ def mode_roles(phase):
edit_url = make_link([("mode", "edit_role"),
("edit", id)])
clone_url = html.makeactionuri([("_clone", id)])
delete_url = html.makeactionuri([("_delete", id)])
- html.buttonlink(edit_url, _("Properties"))
- html.buttonlink(clone_url, _("Clone"))
+ icon_button(edit_url, _("Properties"), "edit")
+ icon_button(clone_url, _("Clone"), "clone")
if not role.get("builtin"):
html.buttonlink(delete_url, _("Delete"))
html.write("</td>")