From 2caea0b5056f6dff398b3af1623587f131a37192 Mon Sep 17 00:00:00 2001 From: Michael Vasseur <14887731+vmcj@users.noreply.github.com> Date: Sat, 4 Nov 2023 17:33:06 +0100 Subject: [PATCH] Don't make all table cells fully clickable The intent in 122c545cd13a5ff96bba868cc5553679352099a9 was to align everything properly but the audit table has a mix of cells with text and with anchors. We either have to set some extra conditions on the `td` or just not use the new logic for certain tables. --- webapp/src/Controller/Jury/AuditLogController.php | 2 +- webapp/templates/jury/jury_macros.twig | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/webapp/src/Controller/Jury/AuditLogController.php b/webapp/src/Controller/Jury/AuditLogController.php index 3669f7e5b3..712a83769f 100644 --- a/webapp/src/Controller/Jury/AuditLogController.php +++ b/webapp/src/Controller/Jury/AuditLogController.php @@ -103,7 +103,7 @@ public function indexAction( return $this->render('jury/auditlog.html.twig', [ 'auditlog' => $auditlog_table, 'table_fields' => $table_fields, - 'table_options' => ['ordering' => 'false', 'searching' => 'false'], + 'table_options' => ['ordering' => 'false', 'searching' => 'false', 'full_clickable' => false], 'maxPages' => $maxPages, 'thisPage' => $thisPage, 'showAll' => $showAll, diff --git a/webapp/templates/jury/jury_macros.twig b/webapp/templates/jury/jury_macros.twig index 9148308845..6b86e3903d 100644 --- a/webapp/templates/jury/jury_macros.twig +++ b/webapp/templates/jury/jury_macros.twig @@ -85,9 +85,9 @@ {% endmacro %} {% macro table(data, fields, options) %} -
- +
{%- set num_actions = data | numTableActions %}