mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Merge pull request #1325 from runborg/master
Added plugin hook to create a custom container under device->overview.
This commit is contained in:
@@ -26,6 +26,8 @@ echo('
|
|||||||
<div class="col-md-6">
|
<div class="col-md-6">
|
||||||
');
|
');
|
||||||
include("includes/dev-overview-data.inc.php");
|
include("includes/dev-overview-data.inc.php");
|
||||||
|
Plugins::call('device_overview_container',array($device));
|
||||||
|
|
||||||
include("overview/ports.inc.php");
|
include("overview/ports.inc.php");
|
||||||
echo('
|
echo('
|
||||||
</div>
|
</div>
|
||||||
|
@@ -4,6 +4,14 @@ class Test {
|
|||||||
public function menu() {
|
public function menu() {
|
||||||
echo('<li><a href="plugin/p='.get_class().'">'.get_class().'</a></li>');
|
echo('<li><a href="plugin/p='.get_class().'">'.get_class().'</a></li>');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
public function device_overview_container($device) {
|
||||||
|
echo('<div class="container-fluid"><div class="row"> <div class="col-md-12"> <div class="panel panel-default panel-condensed"> <div class="panel-heading"><strong>'.get_class().' Plugin </strong> </div>');
|
||||||
|
echo(' Example plugin in "Device - Overview" tab <br>');
|
||||||
|
echo('</div></div></div></div>');
|
||||||
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
Reference in New Issue
Block a user