Add server version to master api
Add IsEvadedOffense to EFPenalty Fix remote log reading in not Windows
This commit is contained in:
@ -25,7 +25,9 @@ namespace WebfrontCore.ViewComponents
|
||||
#if DEBUG
|
||||
Offense = !string.IsNullOrEmpty(p.AutomatedOffense) ? p.AutomatedOffense : p.Offense,
|
||||
#else
|
||||
Offense = User.Identity.IsAuthenticated && !string.IsNullOrEmpty(p.AutomatedOffense) ? p.AutomatedOffense : p.Offense,
|
||||
Offense = User.Identity.IsAuthenticated && !string.IsNullOrEmpty(p.AutomatedOffense) ? (p.IsEvadedOffense ?
|
||||
$"({Utilities.CurrentLocalization.LocalizationIndex["WEBFRONT_PENALTY_EVADE"]}) " : "") + p.AutomatedOffense :
|
||||
$"({Utilities.CurrentLocalization.LocalizationIndex["WEBFRONT_PENALTY_EVADE"]}) " + p.Offense,
|
||||
#endif
|
||||
Type = p.Type.ToString(),
|
||||
TimePunished = Utilities.GetTimePassed(p.When, false),
|
||||
|
@ -168,6 +168,7 @@ function shouldIncludePlural(num) {
|
||||
let mostRecentDate = 0;
|
||||
let currentStepAmount = 0;
|
||||
let lastStep = '';
|
||||
// todo: fix
|
||||
function timeStep(stepDifference) {
|
||||
let hours = stepDifference / (1000 * 60 * 60);
|
||||
let days = stepDifference / (1000 * 60 * 60 * 24);
|
||||
|
Reference in New Issue
Block a user