diff --git a/src/app/rms/leaderboard/leaderboard-head.component.html b/src/app/rms/leaderboard/leaderboard-head.component.html
index 328a26ae..2844693b 100644
--- a/src/app/rms/leaderboard/leaderboard-head.component.html
+++ b/src/app/rms/leaderboard/leaderboard-head.component.html
@@ -1,4 +1,4 @@
-
5">
+
POS
diff --git a/src/app/rms/leaderboard/leaderboard-head.component.ts b/src/app/rms/leaderboard/leaderboard-head.component.ts
index 89e55c28..46127ca9 100644
--- a/src/app/rms/leaderboard/leaderboard-head.component.ts
+++ b/src/app/rms/leaderboard/leaderboard-head.component.ts
@@ -8,4 +8,5 @@ import { ChangeDetectionStrategy, Component, Input } from '@angular/core';
})
export class LeaderboardHeadComponent {
@Input() fields: string[];
+ @Input() pos: boolean; // FIXME: move to fields?
}
diff --git a/src/app/rms/leaderboard/leaderboard-lap.component.html b/src/app/rms/leaderboard/leaderboard-lap.component.html
index baa292b6..bf8aaeb6 100644
--- a/src/app/rms/leaderboard/leaderboard-lap.component.html
+++ b/src/app/rms/leaderboard/leaderboard-lap.component.html
@@ -28,5 +28,17 @@
{{times[0] - times[3] | time:'s.sss'}}
+
+
+ (times[0] - times[1]) ? 'pos-up' : 'pos-dn'">
+
+
+
diff --git a/src/app/rms/leaderboard/leaderboard-lap.component.ts b/src/app/rms/leaderboard/leaderboard-lap.component.ts
index 9b37cdfa..58af17ac 100644
--- a/src/app/rms/leaderboard/leaderboard-lap.component.ts
+++ b/src/app/rms/leaderboard/leaderboard-lap.component.ts
@@ -13,6 +13,7 @@ export class LeaderboardLapComponent {
@Input() item: LeaderboardItem;
@Input() times: number[];
@Input() best: number[];
+ @Input() last: number[];
@Input() intlap: number;
@Input() fields: string[];
}
diff --git a/src/app/rms/leaderboard/leaderboard.component.html b/src/app/rms/leaderboard/leaderboard.component.html
index 949f783c..50e132db 100644
--- a/src/app/rms/leaderboard/leaderboard.component.html
+++ b/src/app/rms/leaderboard/leaderboard.component.html
@@ -1,4 +1,4 @@
-
+
+ [lap]="n - i"
+ [item]="detail"
+ [times]="times"
+ [best]="best"
+ [last]="detail?.laptimes[i + 1]"
+ [intlap]="intlaps[detail?.id]"
+ [fields]="detailFields">
diff --git a/src/app/rms/leaderboard/leaderboard.component.ts b/src/app/rms/leaderboard/leaderboard.component.ts
index f65a4d1e..8e0538e6 100644
--- a/src/app/rms/leaderboard/leaderboard.component.ts
+++ b/src/app/rms/leaderboard/leaderboard.component.ts
@@ -35,8 +35,8 @@ const FIELDS = [{
}];
const DETAIL_FIELDS = [
- 'lap laptime gap int',
- 'lap laptime sector1 sector2 sector3'
+ 'lap laptime gap int status',
+ 'lap laptime sector1 sector2 sector3 status'
];
export class LeaderboardItem {