Title: [opsview] [5278] Added links to Resolve service checks from host edit page and back again
- Revision
- 5278
- Author
- tvoon
- Date
- 2010-11-01 22:43:59 +0000 (Mon, 01 Nov 2010)
Log Message
Added links to Resolve service checks from host edit page and back again
Modified Paths
Modified: trunk/CHANGES
===================================================================
--- trunk/CHANGES 2010-11-01 22:43:35 UTC (rev 5277)
+++ trunk/CHANGES 2010-11-01 22:43:59 UTC (rev 5278)
@@ -38,6 +38,7 @@
Automatically remove trailing spaces in service check names and in host attribute values, to avoid potential issues in Nagios configuration
Added ability to get data from REST API using JSONP
New helper table in Runtime database, to speed up configdumpend process on large systems
+ Added links to Resolve service checks from host edit page and back again
FIXES:
Fixed new creation of SNMP trap rule type service check redirecting to rules page on create/clone
Modified: trunk/opsview-web/lib/Opsview/Web/Controller/Admin/Host.pm
===================================================================
--- trunk/opsview-web/lib/Opsview/Web/Controller/Admin/Host.pm 2010-11-01 22:43:35 UTC (rev 5277)
+++ trunk/opsview-web/lib/Opsview/Web/Controller/Admin/Host.pm 2010-11-01 22:43:59 UTC (rev 5278)
@@ -104,6 +104,12 @@
$c->stash( attributes_labels => $attributes_labels );
$c->stash( attributes_fields => $attributes_fields );
$c->stash( attributes_fields_json => to_json($attributes_fields) );
+
+ push @{ $c->stash->{page_view_options_links} },
+ {
+ link => $c->uri_for( "/admin/host/services", $c->stash->{object}->id )->path,
+ name => $c->loc("ui.admin.host.menu.resolveServiceChecks"),
+ };
}
sub list : Local : Args(0) {
@@ -183,6 +189,11 @@
$c->stash( service_objects => $o->resolved_servicechecks );
$c->stash( management_urls => $o->list_managementurls );
$c->stash( page_title => " > " . $c->loc( "ui.admin.host.title.resolvedServices [_1]", $o->name ) );
+ push @{ $c->stash->{page_view_options_links} },
+ {
+ link => $c->uri_for( "/admin/host/edit", $o->id )->path,
+ name => $c->loc( "ui.admin.list.label.edit [_1]", $o->name ),
+ };
}
sub autocomplete : Local {
_______________________________________________
Opsview-checkins mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-checkins