Highlight extended-time results

This commit is contained in:
Wojtek
2026-10-15 20:49:45 +02:00
parent e52d31a783
commit 06d6cc2027
4 changed files with 4 additions and 3 deletions
@@ -0,0 +1 @@
-- No database changes required for version 1.18.1.
@@ -21,7 +21,7 @@ use Joomla\CMS\Router\Route;
</tr></thead>
<tbody>
<?php foreach ($this->items as $item) : ?>
<tr>
<tr class="<?php echo (int) $item->extra_time > 0 ? 'table-warning' : ''; ?>">
<th><a href="<?php echo Route::_('index.php?option=com_testquestions&view=result&id=' . (int) $item->id); ?>"><?php echo $this->escape($item->participant_name); ?></a></th>
<td><?php echo $this->escape(($item->subject_title ? $item->subject_title . ' — ' : '') . $item->set_title); ?></td>
<td><?php echo (int) $item->correct_count; ?> / <?php echo (int) $item->total_count; ?> (<?php echo htmlspecialchars((string) $item->percentage, ENT_QUOTES, 'UTF-8'); ?>%)</td>