mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-23 16:32:45 +00:00
Add "Expired" tag, make labels more customizable
This commit is contained in:
parent
0f8ff13c43
commit
77c4bf71a0
@ -89,7 +89,7 @@ tr.hover {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* info.php */
|
/* info.php */
|
||||||
.litebans-info-badges {
|
.litebans-label-container {
|
||||||
width: 0;
|
width: 0;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
}
|
}
|
||||||
@ -99,6 +99,31 @@ tr.hover {
|
|||||||
font-size: 17px;
|
font-size: 17px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.litebans-label-inactive {
|
||||||
|
color: #fff;
|
||||||
|
background-color: #f79720
|
||||||
|
}
|
||||||
|
|
||||||
|
.litebans-label-expired {
|
||||||
|
color: #fff;
|
||||||
|
background-color: #777
|
||||||
|
}
|
||||||
|
|
||||||
|
.litebans-label-active {
|
||||||
|
color: #fff;
|
||||||
|
background-color: #ee5555
|
||||||
|
}
|
||||||
|
|
||||||
|
.litebans-label-permanent {
|
||||||
|
color: #fff;
|
||||||
|
background-color: #ee5555
|
||||||
|
}
|
||||||
|
|
||||||
|
.litebans-label-ipban {
|
||||||
|
color: #fff;
|
||||||
|
background-color: #ee5555
|
||||||
|
}
|
||||||
|
|
||||||
/* history.php */
|
/* history.php */
|
||||||
.litebans-label-history {
|
.litebans-label-history {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
|
14
info.php
14
info.php
@ -163,19 +163,23 @@ if ($st->execute(array($id))) {
|
|||||||
$idx = "generic.ipmute";
|
$idx = "generic.ipmute";
|
||||||
}
|
}
|
||||||
if ($idx !== null) {
|
if ($idx !== null) {
|
||||||
$badges .= "<span class='badge badge-danger litebans-label-info'>" . $page->t($idx) . "</span>";
|
$badges .= "<span class='badge litebans-label-info litebans-label-ipban'>" . $page->t($idx) . "</span>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($active === true) {
|
if ($active === true) {
|
||||||
$badges .= "<span class='badge badge-danger litebans-label-info'>" . $page->t("generic.active") . "</span>";
|
$badges .= "<span class='badge litebans-label-info litebans-label-active'>" . $page->t("generic.active") . "</span>";
|
||||||
if ($permanent) {
|
if ($permanent) {
|
||||||
$badges .= "<span class='badge badge-danger litebans-label-info'>" . $page->t("generic.permanent") . "</span>";
|
$badges .= "<span class='badge litebans-label-info litebans-label-permanent'>" . $page->t("generic.permanent") . "</span>";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$badges .= "<span class='badge badge-warning litebans-label-info'>" . $page->t("generic.inactive") . "</span>";
|
if ($page->is_expired($row)) {
|
||||||
|
$badges .= "<span class='badge litebans-label-info litebans-label-expired'>" . $page->t("generic.expired") . "</span>";
|
||||||
|
} else {
|
||||||
|
$badges .= "<span class='badge litebans-label-info litebans-label-inactive'>" . $page->t("generic.inactive") . "</span>";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$page->print_header(true, $header . "<div class=\"litebans-info-badges\">$badges</div>");
|
$page->print_header(true, $header . "<div class=\"litebans-label-container\">$badges</div>");
|
||||||
|
|
||||||
$map = $info->basic_info($row, $player_name);
|
$map = $info->basic_info($row, $player_name);
|
||||||
|
|
||||||
|
@ -15,11 +15,6 @@ class DefaultLang {
|
|||||||
$array["title.player-history"] = "Recent Punishments for {name}";
|
$array["title.player-history"] = "Recent Punishments for {name}";
|
||||||
$array["title.staff-history"] = "Recent Punishments by {name}";
|
$array["title.staff-history"] = "Recent Punishments by {name}";
|
||||||
|
|
||||||
$array["page.expired.ban"] = '(Unbanned)';
|
|
||||||
$array["page.expired.ban-by"] = '(Unbanned by {name})';
|
|
||||||
$array["page.expired.mute"] = '(Unmuted)';
|
|
||||||
$array["page.expired.mute-by"] = '(Unmuted by {name})';
|
|
||||||
$array["page.expired.warning"] = '(Expired)';
|
|
||||||
|
|
||||||
$array["generic.ban"] = "Ban";
|
$array["generic.ban"] = "Ban";
|
||||||
$array["generic.mute"] = "Mute";
|
$array["generic.mute"] = "Mute";
|
||||||
@ -41,9 +36,16 @@ class DefaultLang {
|
|||||||
$array["generic.type"] = "Type";
|
$array["generic.type"] = "Type";
|
||||||
$array["generic.active"] = "Active";
|
$array["generic.active"] = "Active";
|
||||||
$array["generic.inactive"] = "Inactive";
|
$array["generic.inactive"] = "Inactive";
|
||||||
|
$array["generic.expired"] = "Expired";
|
||||||
$array["generic.permanent"] = "Permanent";
|
$array["generic.permanent"] = "Permanent";
|
||||||
$array["generic.player-name"] = "Player";
|
$array["generic.player-name"] = "Player";
|
||||||
|
|
||||||
|
$array["page.expired.ban"] = '(Unbanned)';
|
||||||
|
$array["page.expired.ban-by"] = '(Unbanned by {name})';
|
||||||
|
$array["page.expired.mute"] = '(Unmuted)';
|
||||||
|
$array["page.expired.mute-by"] = '(Unmuted by {name})';
|
||||||
|
$array["page.expired.warning"] = '(' . $array["generic.expired"] . ')';
|
||||||
|
|
||||||
$array["table.player"] = $array["generic.player-name"];
|
$array["table.player"] = $array["generic.player-name"];
|
||||||
$array["table.type"] = $array["generic.type"];
|
$array["table.type"] = $array["generic.type"];
|
||||||
$array["table.executor"] = "Moderator";
|
$array["table.executor"] = "Moderator";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user