1<?php 2 3use Fisharebest\Webtrees\Fact; 4use Fisharebest\Webtrees\I18N; 5use Illuminate\Support\Collection; 6 7/** 8 * @var int $limit_high 9 * @var int $limit_low 10 * @var Collection<Fact> $tasks 11 */ 12 13?> 14 15<table 16 class="table table-bordered table-sm wt-table-tasks datatables d-none" 17 <?= view('lists/datatables-attributes') ?> 18 <?php if ($tasks->count() < e($limit_high)) : ?> 19 data-paging="false" 20 <?php endif ?> 21 data-filter="false" 22 data-info="false" 23 data-length-change="false" 24 data-page-length="<?= e($limit_low) ?>" 25> 26 <thead> 27 <tr> 28 <th class="d-none d-md-table-cell wt-side-block-optional"> 29 <?= I18N::translate('Date') ?> 30 </th> 31 <th> 32 <?= I18N::translate('Record') ?> 33 </th> 34 <th class="d-none d-md-table-cell wt-side-block-optional"> 35 <?= I18N::translate('Username') ?> 36 </th> 37 <th> 38 <?= I18N::translate('Research task') ?> 39 </th> 40 </tr> 41 </thead> 42 43 <tbody> 44 <?php foreach ($tasks as $task) : ?> 45 <tr> 46 <td data-sort="<?= $task->date()->julianDay() ?>" class="d-none d-md-table-cell wt-side-block-optional"> 47 <?= $task->date()->display() ?> 48 </td> 49 <td data-sort="<?= e($task->record()->sortName()) ?>"> 50 <a href="<?= e($task->record()->url()) ?>"> 51 <?= $task->record()->fullName() ?> 52 </a> 53 </td> 54 <td class="d-none d-md-table-cell wt-side-block-optional"> 55 <?= e($task->attribute('_WT_USER')) ?> 56 </td> 57 <td dir="auto"> 58 <?= e($task->value()) ?> 59 </td> 60 </tr> 61 <?php endforeach ?> 62 </tbody> 63</table> 64