mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Next front page improvement
- load all files in include directory - half-baked attempt to make HTML output more readable - add top hosts by total bits box - horrible hack to generate_device_link() to make it possible to insert the device_bits graph
This commit is contained in:
29
html/includes/front/boxes.inc.php
Normal file
29
html/includes/front/boxes.inc.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
/*
|
||||
* LibreNMS front page graphs
|
||||
*
|
||||
* Copyright (c) 2013 Gear Consulting Pty Ltd <http://libertysys.com.au/>
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the
|
||||
* Free Software Foundation, either version 3 of the License, or (at your
|
||||
* option) any later version. Please see LICENSE.txt at the top level of
|
||||
* the source code distribution for details.
|
||||
*/
|
||||
?>
|
||||
<script type="text/javascript" src="js/jquery.cycle.all.js"></script>
|
||||
<script type="text/javascript" src="js/jquery-cycle-boxes.js"></script>
|
||||
<?php
|
||||
|
||||
echo("<div class='right-2-col-fixed'>\n<div class='boxes'>\n");
|
||||
|
||||
foreach (get_matching_files($config['html_dir']."/includes/front/", "/^top_.*\.php$/") as $file) {
|
||||
echo("<div class=box>\n");
|
||||
include_once($file);
|
||||
echo("</div>\n");
|
||||
}
|
||||
|
||||
echo("</div>\n");
|
||||
echo("</div>\n");
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user