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

make metro styled tiles look and act the same

This commit is contained in:
Chris Schneider 2013-02-22 09:08:51 -06:00
parent a7b18ac6ab
commit e6e4b74d26
5 changed files with 62 additions and 49 deletions

View file

@ -49,21 +49,23 @@
if (plugin.isPremium) {
html += "<div class='premiumBanner'><img src='css/images/premiumflag.png' /></div>";
}
var color = plugin.tileColor || Dashboard.getRandomMetroColor();
html += "<div class='posterViewItemText' style='background:" + color + "'>";
var installedPlugin = installedPlugins.filter(function (ip) {
return ip.Name == plugin.name;
})[0];
html += "<div>";
if (installedPlugin) {
html += plugin.name + " (Installed)";
} else {
html += plugin.name;
}
html += "</div>";
html += "</div>";