mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Added plugin hook to create a custom container under device->overview.
Container apears over "Overall traffic" on the left phane
This commit is contained in:
@@ -26,6 +26,8 @@ echo('
|
||||
<div class="col-md-6">
|
||||
');
|
||||
include("includes/dev-overview-data.inc.php");
|
||||
Plugins::call('device_overview_container',array($device));
|
||||
|
||||
include("overview/ports.inc.php");
|
||||
echo('
|
||||
</div>
|
||||
|
@@ -4,6 +4,14 @@ class Test {
|
||||
public function menu() {
|
||||
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>Test Plugin</strong> </div> i"ve just added a plugin :) <br>');
|
||||
echo('<pre>');
|
||||
var_dump($device);
|
||||
echo('</pre>');
|
||||
echo('</div></div></div></div>');
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
Reference in New Issue
Block a user