diff --git a/frontend/src/app/bans/bans.component.html b/frontend/src/app/bans/bans.component.html index 9d3decc..9dc2edd 100644 --- a/frontend/src/app/bans/bans.component.html +++ b/frontend/src/app/bans/bans.component.html @@ -10,17 +10,19 @@
-
- - - - +
+ + + +
-
- +
+
- +
+ +
diff --git a/frontend/src/app/bans/bans.component.scss b/frontend/src/app/bans/bans.component.scss index e69de29..4607904 100644 --- a/frontend/src/app/bans/bans.component.scss +++ b/frontend/src/app/bans/bans.component.scss @@ -0,0 +1,36 @@ +main .container { + padding: 0; +} + +.container { + max-width: 1200px; +} + +.columnSection { + padding: 20px 0 20px 0; + max-width: 1200px; +} + +.historyTypeContainer { + width: 70%; + box-sizing: border-box; +} + +.searchContainer { + width: 30%; + box-sizing: border-box; + text-align: right; +} + +.historySearch { + +} + +.historyTable { + font-family: 'open-sans', sans-serif; + margin-bottom: 20px; +} + +.button-outer { + margin-right: 15px; +} diff --git a/frontend/src/app/bans/history/history.component.html b/frontend/src/app/bans/history/history.component.html index 3974149..2337bee 100644 --- a/frontend/src/app/bans/history/history.component.html +++ b/frontend/src/app/bans/history/history.component.html @@ -4,6 +4,7 @@ + @@ -11,6 +12,8 @@ + + @@ -18,6 +21,7 @@ +
Player Banned ByDate Expires
{{ entry.username }} {{ entry.punishedBy }}{{ getPunishmentTime(entry) }} {{ getExpiredTime(entry) }}
diff --git a/frontend/src/app/bans/history/history.component.ts b/frontend/src/app/bans/history/history.component.ts index 5efdfc3..171aece 100644 --- a/frontend/src/app/bans/history/history.component.ts +++ b/frontend/src/app/bans/history/history.component.ts @@ -53,7 +53,14 @@ export class HistoryComponent implements OnInit, OnChanges { public getPunishmentTime(entry: PunishmentHistoryInner) { const date = new Date(entry.punishmentTime); - return date.toLocaleDateString(navigator.language); + return date.toLocaleString(navigator.language, { + year: 'numeric', + month: 'short', + day: 'numeric', + hour: '2-digit', + minute: '2-digit', + hour12: false + }); } public getExpiredTime(entry: PunishmentHistoryInner) { @@ -61,6 +68,13 @@ export class HistoryComponent implements OnInit, OnChanges { return "Permanent " + entry.type.charAt(0).toUpperCase() + entry.type.slice(1); } const date = new Date(entry.punishmentTime + entry.expiryTime); - return date.toLocaleDateString(navigator.language); + return date.toLocaleString(navigator.language, { + year: 'numeric', + month: 'short', + day: 'numeric', + hour: '2-digit', + minute: '2-digit', + hour12: false + }); } }