Page MenuHomeSoftware Heritage

D7489.id27186.diff
No OneTemporary

D7489.id27186.diff

diff --git a/CONTRIBUTORS b/CONTRIBUTORS
--- a/CONTRIBUTORS
+++ b/CONTRIBUTORS
@@ -1,3 +1,4 @@
+Anirudh Lakhotia
Daniele Serafini
Ishan Bhanuka
Kalpit Kothari
diff --git a/assets/src/bundles/add_forge/create-request.js b/assets/src/bundles/add_forge/create-request.js
--- a/assets/src/bundles/add_forge/create-request.js
+++ b/assets/src/bundles/add_forge/create-request.js
@@ -121,10 +121,14 @@
name: 'forge_url',
render: function(data, type, row) {
if (type === 'display') {
- return `<a href="${data}">${data}</a>`;
+ let html = '';
+ const sanitizedURL = $.fn.dataTable.render.text().display(data);
+ html += sanitizedURL;
+ html += `&nbsp;<a href="${sanitizedURL}" target="_blank" rel="noopener noreferrer">` +
+ '<i class="mdi mdi-open-in-new" aria-hidden="true"></i></a>';
+ return html;
}
return data;
-
}
},
{

File Metadata

Mime Type
text/plain
Expires
Nov 5 2024, 12:24 AM (11 w, 18 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3226689

Event Timeline