Changeset View
Changeset View
Standalone View
Standalone View
assets/src/bundles/admin/origin-save.js
Show First 20 Lines • Show All 86 Lines • ▼ Show 20 Lines | const columnsData = [ | ||||
let browseOriginUrl = `${Urls.browse_origin()}?origin_url=${encodeURIComponent(sanitizedURL)}`; | let browseOriginUrl = `${Urls.browse_origin()}?origin_url=${encodeURIComponent(sanitizedURL)}`; | ||||
if (row.visit_date) { | if (row.visit_date) { | ||||
browseOriginUrl += `&timestamp=${encodeURIComponent(row.visit_date)}`; | browseOriginUrl += `&timestamp=${encodeURIComponent(row.visit_date)}`; | ||||
} | } | ||||
html += `<a href="${browseOriginUrl}">${sanitizedURL}</a>`; | html += `<a href="${browseOriginUrl}">${sanitizedURL}</a>`; | ||||
} else { | } else { | ||||
html += sanitizedURL; | html += sanitizedURL; | ||||
} | } | ||||
html += ` <a href="${sanitizedURL}"><i class="mdi mdi-open-in-new" aria-hidden="true"></i></a>`; | html += ` <a href="${sanitizedURL}" target="_blank" rel="noopener noreferrer">` + | ||||
'<i class="mdi mdi-open-in-new" aria-hidden="true"></i></a>'; | |||||
return html; | return html; | ||||
} | } | ||||
return data; | return data; | ||||
} | } | ||||
} | } | ||||
]; | ]; | ||||
pendingSaveRequestsTable = $('#swh-origin-save-pending-requests').DataTable({ | pendingSaveRequestsTable = $('#swh-origin-save-pending-requests').DataTable({ | ||||
▲ Show 20 Lines • Show All 250 Lines • Show Last 20 Lines |