From e4e30d6383f1a03a95c6808369ac105ee4011be2 Mon Sep 17 00:00:00 2001 From: David Siegfried <david.siegfried@uni-vechta.de> Date: Tue, 9 Aug 2022 15:33:55 +0000 Subject: [PATCH] try to improve perfomance on room-administration, refs #357 Merge request studip/studip!881 --- app/views/resources/_common/_action_menu.php | 2 +- app/views/room_management/overview/rooms.php | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/app/views/resources/_common/_action_menu.php b/app/views/resources/_common/_action_menu.php index cdd63c9a085..fc0e327c43e 100644 --- a/app/views/resources/_common/_action_menu.php +++ b/app/views/resources/_common/_action_menu.php @@ -75,7 +75,7 @@ if ($show_user_actions) { $actions['0100'] = [ $resource->getActionLink('files'), _('Dateien anzeigen'), - Icon::create($resource->hasFiles() ? 'folder-full' : 'folder-empty') + Icon::create('folder-full') ]; if ($show_global_admin_actions) { $actions['0110'] = [ diff --git a/app/views/room_management/overview/rooms.php b/app/views/room_management/overview/rooms.php index 4a743a8d768..a6323dc6f69 100644 --- a/app/views/room_management/overview/rooms.php +++ b/app/views/room_management/overview/rooms.php @@ -1,11 +1,16 @@ <? if ($rooms): ?> <table class="default sortable-table rooms-list"> + <colgroup> + <col style="width: 70%"> + <col style="width: 10%"> + <col> + <col style="width: 20px"> + </colgroup> <thead> <tr> <th data-sort="text"><?= _('Name') ?></th> <th data-sort="number"><?= _('Sitzplätze') ?></th> <th data-sort="text"><?= _('Raumkategorie') ?></th> - <th data-sort="text"><?= _('Raumtyp') ?></th> <th class="actions"><?= _('Aktionen') ?></th> </tr> </thead> @@ -38,7 +43,6 @@ 'show_room_picture' => true, 'additional_columns' => [ $room->category->name, - $room->room_type, ] ] ) ?> -- GitLab