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 20:41:11 +00:00
committed by Neil Lathwood
parent 5c4b6877b0
commit 7460cf3604
2 changed files with 7 additions and 5 deletions
+1
View File
@@ -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) {
+6 -5
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>';