Merge pull request #59 from zvizvi/master

This commit is contained in:
Samar Dhwoj Acharya 2021-05-24 11:52:01 -04:00 committed by GitHub
commit def2b23963
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -47,7 +47,7 @@ function updateDT(data) {
const forks = [];
for (let fork of data) {
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 || 'https://avatars.githubusercontent.com/u/0?v=4'}&s=48" width="24" height="24" class="mr-2 rounded-circle" />${fork.owner ? fork.owner.login : '<strike><em>Unknown</em></strike>'}`;
forks.push(fork);
}
const dataSet = forks.map(fork =>
@ -100,7 +100,7 @@ function initDT() {
order: [[sortColumnIdx, 'desc']],
// paging: false,
searchBuilder:{
// all options at default
// all options at default
}
});
let table = window.forkTable;