aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/host.php
diff options
context:
space:
mode:
authorRohit Bhute2013-03-17 13:40:38 +0530
committerPim van den Berg2013-03-30 14:10:52 +0100
commit60fb79ac97869b8333621380828dd1b84a069990 (patch)
tree113b34e7c76dedfc9c9e9d050867a5f16b99aab0 /host.php
parentdetail.php: make terms configurable (diff)
downloadapt-panopticon_cgp-60fb79ac97869b8333621380828dd1b84a069990.zip
apt-panopticon_cgp-60fb79ac97869b8333621380828dd1b84a069990.tar.gz
apt-panopticon_cgp-60fb79ac97869b8333621380828dd1b84a069990.tar.bz2
apt-panopticon_cgp-60fb79ac97869b8333621380828dd1b84a069990.tar.xz
add feature to show a subset of graphs from a plugin on overview page
Diffstat (limited to 'host.php')
-rw-r--r--host.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/host.php b/host.php
index 71d786a..363e9d5 100644
--- a/host.php
+++ b/host.php
@@ -22,11 +22,13 @@ if(!$plugins) {
22 22
23plugins_list($host, $selected_plugins); 23plugins_list($host, $selected_plugins);
24 24
25$overview = empty($plugin) ? true : false;
26
25echo '<div class="graphs">'; 27echo '<div class="graphs">';
26foreach ($selected_plugins as $selected_plugin) { 28foreach ($selected_plugins as $selected_plugin) {
27 if (in_array($selected_plugin, $plugins)) { 29 if (in_array($selected_plugin, $plugins)) {
28 plugin_header($host, $selected_plugin); 30 plugin_header($host, $selected_plugin);
29 graphs_from_plugin($host, $selected_plugin); 31 graphs_from_plugin($host, $selected_plugin, $overview);
30 } 32 }
31} 33}
32echo '</div>'; 34echo '</div>';