feat: minor visual changes to the apps-overview page (#14090)

* feat: minor visual changes to the apps-overview page

* fixup! feat: minor visual changes to the apps-overview page
This commit is contained in:
Bennet Gallein
2022-07-12 15:30:00 +02:00
committed by GitHub
parent 4536ccbcab
commit a9d5c378f7

View File

@@ -11,9 +11,12 @@ $graph_array_zoom['height'] = '150';
$graph_array_zoom['width'] = '400';
$graph_array['legend'] = 'no';
$index = 0;
foreach (Application::query()->hasAccess(Auth::user())->with('device')->get()->sortBy('show_name', SORT_NATURAL | SORT_FLAG_CASE)->groupBy('app_type') as $type => $groupedApps) {
echo '<div style="clear: both;">';
echo '<h2>' . generate_link($groupedApps->first()->displayName(), ['page' => 'apps', 'app' => $type]) . '</h2>';
echo $index > 0 ? '<hr />' : '';
$index++;
echo '<h4>' . generate_link($groupedApps->first()->displayName(), ['page' => 'apps', 'app' => $type]) . '</h4>';
/** @var \Illuminate\Support\Collection $groupedApps */
$groupedApps = $groupedApps->sortBy(function ($app) {
return $app->device->hostname;
@@ -46,7 +49,6 @@ foreach (Application::query()->hasAccess(Auth::user())->with('device')->get()->s
text-align: center; float: left;'>";
echo \LibreNMS\Util\Url::overlibLink($overlib_url, $overlib_link, $overlib_content);
echo '</div>';
}//end foreach
} //end foreach
echo '</div>';
}//end foreach