Skip to content
Snippets Groups Projects
Commit c9115558 authored by David Siegfried's avatar David Siegfried Committed by Jan-Hendrik Willms
Browse files

try to improve perfomance on room-administration, refs #357

Merge request studip/studip!881
parent 2de3dc95
No related branches found
No related tags found
No related merge requests found
...@@ -237,11 +237,7 @@ ...@@ -237,11 +237,7 @@
$actions['0100'] = [ $actions['0100'] = [
$resource->getActionLink('files'), $resource->getActionLink('files'),
_('Dateien anzeigen'), _('Dateien anzeigen'),
Icon::create( Icon::create('folder-full'),
$resource->hasFiles()
? 'folder-full'
: 'folder-empty'
),
[] []
]; ];
if ($show_global_admin_actions) { if ($show_global_admin_actions) {
......
<? if ($rooms): ?> <? if ($rooms): ?>
<table class="default sortable-table rooms-list"> <table class="default sortable-table rooms-list">
<colgroup>
<col style="width: 70%">
<col style="width: 10%">
<col>
<col style="width: 20px">
</colgroup>
<thead> <thead>
<tr> <tr>
<th data-sort="text"><?= _('Name') ?></th> <th data-sort="text"><?= _('Name') ?></th>
<th data-sort="number"><?= _('Sitzplätze') ?></th> <th data-sort="number"><?= _('Sitzplätze') ?></th>
<th data-sort="text"><?= _('Raumkategorie') ?></th> <th data-sort="text"><?= _('Raumkategorie') ?></th>
<th data-sort="text"><?= _('Raumtyp') ?></th>
<th class="actions"><?= _('Aktionen') ?></th> <th class="actions"><?= _('Aktionen') ?></th>
</tr> </tr>
</thead> </thead>
...@@ -38,7 +43,6 @@ ...@@ -38,7 +43,6 @@
'show_room_picture' => true, 'show_room_picture' => true,
'additional_columns' => [ 'additional_columns' => [
$room->category->name, $room->category->name,
$room->room_type,
] ]
] ]
) ?> ) ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment