Skip to content

Commit

Permalink
add thumbnails
Browse files Browse the repository at this point in the history
  • Loading branch information
rawdaGastan committed Nov 5, 2023
1 parent 10ad00d commit 4e7462e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion templates/webclient/files.html
Original file line number Diff line number Diff line change
Expand Up @@ -1376,7 +1376,11 @@ <h5 class="modal-title" id="videoModalLabel">
return `<i class="fas fa-external-link-alt"></i>&nbsp;<a class="${cssClass}" href="${row['url']}" title="${title}">${shortened}</a>`;
}
let icon = getIconForFile(data);
return `<i class="${icon}"></i>&nbsp;<a class="${cssClass}" href="${row['url']}" title="${title}">${shortened}</a>`;
if (icon == "far fa-file-image") {
let thumbnail = `<a href="${row['url']}" data-lightbox="image-gallery-thumbnail" data-title="${title}"><img src="${row['url']}" alt="${title}" style="width:15px"></a>`;
return `${thumbnail}&nbsp;<a class="${cssClass}" href="${row['url']}" title="${title}">${shortened}</a>`;
}
return `<i class="${icon}"></i>&nbsp;<a class="${cssClass}" href="${row['url']}" title="${title}">${shortened}</a>`;
}
return data;
}
Expand Down

0 comments on commit 4e7462e

Please sign in to comment.