Bug 41564: Tidy kohaTable - admin/file_transports.tt

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Jonathan Druart 2026-01-08 10:59:05 +01:00 committed by Lucas Gass
parent 3206232bd8
commit 3435a23656
No known key found for this signature in database
GPG Key ID: 60B447398B0D36CA
1 changed files with 7 additions and 1 deletions

View File

@ -459,6 +459,12 @@
[% Asset.js("js/admin-menu.js") | $raw %]
[% Asset.js("js/transport_status.js") | $raw %]
[% INCLUDE 'datatables.inc' %]
<script>
const i18n = {
on: "[% tp("Active", "On") | html %]";
};
</script>
<script>
$(document).ready(function() {
@ -597,7 +603,7 @@
"data": "debug",
"render": function(data, type, row, meta) {
if(data == true) {
return "[% tp("Active", "On") | html %]";
return i18n.on;
}
else {
return _("Off");