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:
parent
a7b18ac6ab
commit
e6e4b74d26
5 changed files with 62 additions and 49 deletions
|
@ -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>";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue