mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
webui: Tidy applications page to be standardised (#7994)
* enabled apps overview in top menu unified apps page with new design * removed commented code, added copyright * removed copyright
This commit is contained in:
@@ -473,6 +473,7 @@ if ($_SESSION['userlevel'] >= '5' && count($app_list) > "0") {
|
||||
<li class="dropdown">
|
||||
<a href="apps/" class="dropdown-toggle" data-hover="dropdown" data-toggle="dropdown"><i class="fa fa-tasks fa-fw fa-lg fa-nav-icons hidden-md" aria-hidden="true"></i> <span class="hidden-sm">Apps</span></a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="apps/"><i class="fa fa-object-group fa-fw fa-lg" aria-hidden="true"></i> Overview</a></li>
|
||||
<?php
|
||||
|
||||
foreach ($app_list as $app) {
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
$pagetitle[] = 'Apps';
|
||||
|
||||
$graphs['apache'] = array(
|
||||
'bits',
|
||||
@@ -296,7 +297,8 @@ $graphs['zfs'] = array(
|
||||
'arc_cache_miss',
|
||||
);
|
||||
|
||||
print_optionbar_start();
|
||||
echo '<div class="panel panel-default">';
|
||||
echo '<div class="panel-heading">';
|
||||
|
||||
echo "<span style='font-weight: bold;'>Apps</span> » ";
|
||||
|
||||
@@ -323,8 +325,8 @@ foreach ($app_list as $app) {
|
||||
$sep = ' | ';
|
||||
}
|
||||
|
||||
print_optionbar_end();
|
||||
|
||||
echo '</div>';
|
||||
echo '<div class="panel-body">';
|
||||
if ($vars['app']) {
|
||||
if (is_file('pages/apps/'.mres($vars['app']).'.inc.php')) {
|
||||
include 'pages/apps/'.mres($vars['app']).'.inc.php';
|
||||
@@ -334,5 +336,4 @@ if ($vars['app']) {
|
||||
} else {
|
||||
include 'pages/apps/overview.inc.php';
|
||||
}
|
||||
|
||||
$pagetitle[] = 'Apps';
|
||||
echo '</div>';
|
||||
|
||||
Reference in New Issue
Block a user