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

fix up plugin catalog

This commit is contained in:
Luke Pulverenti 2016-07-30 17:15:47 -04:00
parent cf4b3f13d9
commit 06f9b01c37

View file

@ -1,4 +1,4 @@
define(['jQuery'], function ($) {
define(['jQuery', 'cardStyle'], function ($) {
// The base query options
var query = {
@ -119,12 +119,16 @@
return 0;
});
html += '<div class="itemsContainer vertical-wrap">';
var limit = screen.availWidth >= 1920 ? 15 : 12;
for (i = 0, length = Math.min(topPlugins.length, limit) ; i < length; i++) {
html += getPluginHtml(topPlugins[i], options, installedPlugins);
}
html += '</div>';
}
var hasOpenTag = false;
for (i = 0, length = availablePlugins.length; i < length; i++) {
plugin = availablePlugins[i];
@ -135,12 +139,16 @@
if (options.showCategory !== false) {
if (currentCategory) {
hasOpenTag = false;
html += '</div>';
html += '<br/>';
html += '<br/>';
html += '<br/>';
}
html += '<div class="detailSectionHeader">' + category + '</div>';
html += '<div class="itemsContainer vertical-wrap">';
hasOpenTag = true;
}
currentCategory = category;
@ -150,6 +158,10 @@
}
if (hasOpenTag) {
html += '</div>';
}
if (!availablePlugins.length && options.noItemsElement) {
$(options.noItemsElement).hide();
}
@ -169,7 +181,7 @@
}
var target = plugin.externalUrl ? ' target="_blank"' : '';
html += "<div class='card backdropCard bottomPaddedCard'>";
html += "<div class='card backdropCard bottomPaddedCard scalableCard'>";
html += '<div class="cardBox visualCardBox">';
html += '<div class="cardScalable">';