+
Details
+
+ @if (isArrayDetails(log.details)) {
+ @if (isWinnerArray(log.details)) {
+
+
+
+
+ | Post |
+ Winner |
+ Votes |
+
+
+
+ @for (row of voteEntries(log.details); track $index) {
+
+ |
+ {{ row.post }}
+ |
+ {{ row.winner }} |
+ {{ row.votes }} |
+
+ }
+
+
+ } @else {
+
+
+
+
+ | Candidate |
+ Post |
+ Votes |
+ @if (hasVoteEdits(log.details)) {
+ Previous |
+ }
+
+
+
+ @for (row of voteEntries(log.details); track $index) {
+
+ | {{ row.candidate }} |
+
+ {{ row.post }}
+ |
+ {{ row.votes }} |
+ @if (hasVoteEdits(log.details)) {
+ {{ row.previousVotes ?? '—' }} |
+ }
+
+ }
+
+
+ }
+ } @else if (detailsEntries(log.details).length > 0) {
+
+
+ @for (entry of detailsEntries(log.details); track entry.key) {
+
+ {{ entry.label }}
+ {{ formatValue(entry) }}
+
+ }
+
+ } @else {
+
+
{{ parsedDetails(log.details) }}
+ }