mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user