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:
crcro
2018-01-05 22:41:11 +02:00
committed by Neil Lathwood
parent 5c4b6877b0
commit 7460cf3604
2 changed files with 7 additions and 5 deletions

View File

@@ -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> &#187; ";
@@ -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>';