Module: check_mk
Branch: master
Commit: 0351ee106c301c910394ab1ed6cda8b8c06e4b4f
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0351ee106c301c…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Feb 3 14:32:01 2016 +0100
Changed order of action buttons in custom graphs and bookmarks
---
web/htdocs/pagetypes.py | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/web/htdocs/pagetypes.py b/web/htdocs/pagetypes.py
index 7766e83..40278c8 100644
--- a/web/htdocs/pagetypes.py
+++ b/web/htdocs/pagetypes.py
@@ -783,10 +783,6 @@ class Overridable:
# Actions
table.cell(_('Actions'), css = 'buttons visuals')
- # Edit
- if instance.may_edit():
- html.icon_button(instance.edit_url(), _("Edit"),
"edit")
-
# Clone / Customize
buttontext = _("Create a customized copy of this")
html.icon_button(instance.clone_url(), buttontext, "new_" +
self.type_name())
@@ -795,6 +791,10 @@ class Overridable:
if instance.may_delete():
html.icon_button(instance.delete_url(), _("Delete!"),
"delete")
+ # Edit
+ if instance.may_edit():
+ html.icon_button(instance.edit_url(), _("Edit"),
"edit")
+
self.custom_list_buttons(instance)
# Internal ID of instance (we call that 'name')