diff options
| author | Rohit Bhute | 2013-03-17 13:40:38 +0530 |
|---|---|---|
| committer | Pim van den Berg | 2013-03-30 14:10:52 +0100 |
| commit | 60fb79ac97869b8333621380828dd1b84a069990 (patch) | |
| tree | 113b34e7c76dedfc9c9e9d050867a5f16b99aab0 /host.php | |
| parent | detail.php: make terms configurable (diff) | |
| download | apt-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 '')
| -rw-r--r-- | host.php | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -22,11 +22,13 @@ if(!$plugins) { | |||
| 22 | 22 | ||
| 23 | plugins_list($host, $selected_plugins); | 23 | plugins_list($host, $selected_plugins); |
| 24 | 24 | ||
| 25 | $overview = empty($plugin) ? true : false; | ||
| 26 | |||
| 25 | echo '<div class="graphs">'; | 27 | echo '<div class="graphs">'; |
| 26 | foreach ($selected_plugins as $selected_plugin) { | 28 | foreach ($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 | } |
| 32 | echo '</div>'; | 34 | echo '</div>'; |
