mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
Revert the 'hmokay' for level 5-7 apps, instead have a purple for high quality and level 8 labels
This commit is contained in:
parent
1ad5c362a7
commit
2da00ac706
2 changed files with 7 additions and 17 deletions
|
@ -573,16 +573,10 @@ input[type='radio'].nice-radio {
|
|||
}
|
||||
}
|
||||
|
||||
.label-hmokay, .btn-hmokay, .btn-hmokay:active, .btn-hmokay.active {
|
||||
background-color: #71ae2a;
|
||||
color: white;
|
||||
.label-best {
|
||||
background-color: darkorchid;
|
||||
}
|
||||
|
||||
.btn-hmokay:hover, .btn-hmokay:active:hover, .btn-hmokay.active:hover {
|
||||
background-color: #5e8f24;
|
||||
}
|
||||
|
||||
|
||||
// only one card for small screens
|
||||
.app-card {
|
||||
width: 100%;
|
||||
|
|
|
@ -19,10 +19,10 @@
|
|||
|
||||
function levelToColor(level) {
|
||||
if (level >= 8) {
|
||||
return 'success';
|
||||
return 'best';
|
||||
}
|
||||
else if (level > 4) {
|
||||
return 'hmokay';
|
||||
return 'success';
|
||||
}
|
||||
else if (level >= 1) {
|
||||
return 'warning';
|
||||
|
@ -36,10 +36,10 @@
|
|||
|
||||
function stateToColor(state) {
|
||||
if (state === "high-quality") {
|
||||
return 'success';
|
||||
return 'best';
|
||||
}
|
||||
else if (state === "working") {
|
||||
return 'hmokay';
|
||||
return 'success';
|
||||
}
|
||||
else {
|
||||
return 'danger';
|
||||
|
@ -68,9 +68,6 @@
|
|||
else if (stateColor === "warning" || levelColor === "warning" || levelColor === "default") {
|
||||
return 'warning';
|
||||
}
|
||||
else if (stateColor === "hmokay" || levelColor === "hmokay") {
|
||||
return 'hmokay';
|
||||
}
|
||||
else
|
||||
{
|
||||
return 'success';
|
||||
|
@ -152,8 +149,7 @@
|
|||
app.isSafe = (app.installColor !== 'danger');
|
||||
app.isWorking = isWorking ? "isworking" : "notFullyWorking";
|
||||
app.isHighQuality = (app.state === "high-quality") ? "isHighQuality" : "";
|
||||
app.decentQuality = (app.levelColor === "hmokay"
|
||||
|| app.levelColor === "success")?"decentQuality":"badQuality";
|
||||
app.decentQuality = (app.level > 4)?"decentQuality":"badQuality";
|
||||
|
||||
jQuery.extend(app, v);
|
||||
apps.push(app);
|
||||
|
|
Loading…
Reference in a new issue