diff --git a/app/views/resources/resource/_standard_properties_display_part.php b/app/views/resources/resource/_standard_properties_display_part.php index a3cb51a6d92942f9622ae6de9627870b17ed0173..48946c98ab8e5aad49016ef1cbc654f8e13510f8 100644 --- a/app/views/resources/resource/_standard_properties_display_part.php +++ b/app/views/resources/resource/_standard_properties_display_part.php @@ -23,6 +23,10 @@ </header> <table class="default"> + <colgroup> + <col style="width: 70%"> + <col> + </colgroup> <thead> <tr> <th> @@ -39,8 +43,7 @@ <td> <?= htmlReady( $property->display_name - ? $property->display_name - : $property->name + ?: $property->name ) ?> </td> <td> diff --git a/app/views/resources/room/index.php b/app/views/resources/room/index.php index d00aaa8b1057346aeaebc8acec3925ee5fb732b8..8782832e50314f44382f74d4753c2fd254e19ec3 100644 --- a/app/views/resources/room/index.php +++ b/app/views/resources/room/index.php @@ -19,7 +19,7 @@ <h1><?= _('Beschreibung und Hinweise') ?></h1> </header> <section> - <? if ($room->description): ?> + <? if ((string)$room->description !== ''): ?> <p><?= htmlReady($room->description) ?></p> <? endif ?> <ul> @@ -51,6 +51,10 @@ <h1><?= _('Dateien') ?></h1> </header> <table class="default sortable-table" data-sortlist="[[2, 0]]"> + <colgroup> + <col style="width: 70%"> + <col> + </colgroup> <?= $this->render_partial('files/_files_thead') ?> <? foreach ($resource_folder->getFiles() as $file): ?> <? if ($file->isVisible($GLOBALS['user']->id)) : ?>