Skip to content
Snippets Groups Projects
Commit 902039b6 authored by anirudhlakhotia's avatar anirudhlakhotia
Browse files

add_forge_now: Add hyperlinks to forge URLs in Browse Requests tab

Related to T4078
parent 8ffd8176
No related branches found
No related tags found
1 merge request!1088added hyperlinks to URLs in Browse Requests tab
Anirudh Lakhotia
Daniele Serafini
Ishan Bhanuka
Kalpit Kothari
......
......@@ -119,7 +119,17 @@ export function populateRequestBrowseList() {
{
data: 'forge_url',
name: 'forge_url',
render: $.fn.dataTable.render.text()
render: function(data, type, row) {
if (type === 'display') {
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;
}
},
{
data: 'status',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment