diff --git a/src/scripts/pluginspage.js b/src/scripts/pluginspage.js index 69583403e8..37fcfd423a 100644 --- a/src/scripts/pluginspage.js +++ b/src/scripts/pluginspage.js @@ -32,12 +32,34 @@ define(["loading", "libraryMenu", "dom", "globalize", "cardStyle", "emby-linkbut function getPluginCardHtml(plugin, pluginConfigurationPages) { var configPage = pluginConfigurationPages.filter(function(pluginConfigurationPage) { return pluginConfigurationPage.PluginId == plugin.Id - })[0], - html = "", - disallowPlugins = !Dashboard.allowPluginPages(plugin.Id), - configPageUrl = configPage ? Dashboard.getConfigurationPageUrl(configPage.Name) : null, - href = configPage && !disallowPlugins ? configPageUrl : null; - return html += "
", html += '
', html += '
', html += '
', html += href ? '' : configPageUrl ? disallowPlugins ? '
' : '", html += '
', html += '
', html += '', html += "
", html += "
", html += configPage ? configPage.DisplayName || plugin.Name : plugin.Name, html += "
", html += "
", html += plugin.Version, html += "
", html += "
", html += "
", html += "
" + })[0]; + var html = ""; + var disallowPlugins = !Dashboard.allowPluginPages(plugin.Id); + var configPageUrl = configPage ? Dashboard.getConfigurationPageUrl(configPage.Name) : null; + var href = configPage && !disallowPlugins ? configPageUrl : null; + + html += "
"; + html += '
'; + html += '
'; + html += '
'; + html += href ? '' : configPageUrl ? disallowPlugins ? '
' : '"; + html += '
'; + html += '
'; + html += ''; + html += "
"; + html += "
"; + html += configPage ? configPage.DisplayName || plugin.Name : plugin.Name; + html += "
"; + html += "
"; + html += plugin.Version; + html += "
"; + html += "
"; + html += "
"; + html += "
"; + return html; } function renderPlugins(page, plugins, showNoPluginsMessage) {