Show repo owner profile image

This commit is contained in:
zvizvi 2021-05-24 01:01:41 +03:00
parent d21a63ca53
commit 818c3bf24d
1 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ function updateDT(data) {
const forks = []; const forks = [];
for (let fork of data) { for (let fork of data) {
fork.repoLink = `<a href="https://github.com/${fork.full_name}">Link</a>`; fork.repoLink = `<a href="https://github.com/${fork.full_name}">Link</a>`;
fork.ownerName = fork.owner ? fork.owner.login : '<strike><em>Unknown</em></strike>'; fork.ownerName = `<img src="${fork.owner.avatar_url}&s=48" width="24" height="24" class="mr-2 rounded-circle" />${fork.owner ? fork.owner.login : '<strike><em>Unknown</em></strike>'}`;
forks.push(fork); forks.push(fork);
} }
const dataSet = forks.map(fork => const dataSet = forks.map(fork =>
@ -100,7 +100,7 @@ function initDT() {
order: [[sortColumnIdx, 'desc']], order: [[sortColumnIdx, 'desc']],
// paging: false, // paging: false,
searchBuilder:{ searchBuilder:{
// all options at default // all options at default
} }
}); });
let table = window.forkTable; let table = window.forkTable;