Download screen enhancements

Changed the group name according to its category , aircrafts will show icao type and registration , airports will be displayed with their icao codes names and countries. Rest will be showed with their names (exp airlines)

This will result a much better look on the downloads page for end users while looking for a specific type's files (like a repaint for a B738).
This commit is contained in:
B.Fatih KOZ
2020-12-18 22:34:05 +03:00
committed by GitHub
parent e95e61d4b4
commit e4972eaae3

View File

@@ -42,7 +42,14 @@ class DownloadController extends Controller
$category = explode('\\', $class);
$category = end($category);
$group_name = $category.' - '.$obj->name;
if ($category == 'Aircraft') {
$group_name = $category.' > '.$obj->icao.' '.$obj->registration;
} elseif ($category == 'Airport') {
$group_name = $category.' > '.$obj->icao.' : '.$obj->name.' ('.$obj->country.')';
} else {
$group_name = $category.' > '.$obj->name;
}
$regrouped_files[$group_name] = $files;
}