diff --git a/dashboard-ui/scripts/plugincatalogpage.js b/dashboard-ui/scripts/plugincatalogpage.js
index c3f6707883..18920e3152 100644
--- a/dashboard-ui/scripts/plugincatalogpage.js
+++ b/dashboard-ui/scripts/plugincatalogpage.js
@@ -1,4 +1,4 @@
-define(['jQuery'], function ($) {
+define(['jQuery', 'cardStyle'], function ($) {
// The base query options
var query = {
@@ -119,12 +119,16 @@
return 0;
});
+ html += '
';
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 += '
';
}
+ 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 += '';
html += '
';
html += '
';
html += '
';
}
html += '';
+ html += '';
+ hasOpenTag = true;
}
currentCategory = category;
@@ -150,6 +158,10 @@
}
+ if (hasOpenTag) {
+ html += '
';
+ }
+
if (!availablePlugins.length && options.noItemsElement) {
$(options.noItemsElement).hide();
}
@@ -169,7 +181,7 @@
}
var target = plugin.externalUrl ? ' target="_blank"' : '';
- html += "