1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Update index.js

This commit is contained in:
BaronGreenback 2020-12-30 15:33:33 +00:00 committed by GitHub
parent 2c00c64005
commit d0552ce7ae
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,10 +59,10 @@ function getPluginCardHtml(plugin, pluginConfigurationPages) {
html += '<div class="cardBox visualCardBox">';
html += '<div class="cardScalable">';
html += '<div class="cardPadder cardPadder-backdrop"></div>';
html += configPageUrl ? '<a class="cardContent cardImageContainer" is="emby-linkbutton" href="' + configPageUrl + '">' : '<div class="cardContent noConfigPluginCard noHoverEffect cardImageContainer emby-button">';
html += configPageUrl ? `<a class="cardContent cardImageContainer" is="emby-linkbutton" href="${configPageUrl}">` : '<div class="cardContent noConfigPluginCard noHoverEffect cardImageContainer emby-button">';
html += '<span class="cardImageIcon';
if (plugin.HasImage) {
html += '"><img src="/Plugins/' + plugin.Id + '/' + plugin.Version + '/Image" style="width:100%;height:auto"/>';
html += `"><img src="/Plugins/${plugin.Id}/${plugin.Version}/Image" style="width:100%;height:auto"/>`;
} else {
html += ' material-icons folder">';
}
@ -79,7 +79,7 @@ function getPluginCardHtml(plugin, pluginConfigurationPages) {
html += "<div class='cardText'>";
html += configPage && configPage.DisplayName ? configPage.DisplayName : plugin.Name;
html += '<br/>' + globalize.translate('LabelStatus') + ' ' + plugin.Status + '</div>';
html += '<br/>' + globalize.translate('LabelStatus') + ` ${plugin.Status}</div>`;
html += "<div class='cardText cardText-secondary'>";
html += plugin.Version;
html += '</div>';