8c898cd652
Migrates to Angular 21.0.0: updates tsconfig lib to es2022, migrates bootstrap options in main.ts, and completes control flow migration (*ngFor/*ngIf → @for/@if) in jumps and jumps-by-month templates to resolve duplicate ng-template name conflicts skipped by the schematic. Also fixes pre-commit hook to load nvm before running tests.
38 lines
1.4 KiB
HTML
38 lines
1.4 KiB
HTML
<table class="table table-striped table-dark table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th></th>
|
|
@for (name of headers; track name; let i = $index) {
|
|
<th class="text-end">{{ name }}</th>
|
|
}
|
|
<th class="text-end">Total</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@for (row of rows; track row; let i = $index) {
|
|
<tr>
|
|
<th class="{{ colors[i] }} text-end">● {{ names[i] }}</th>
|
|
@for (value of row; track value; let i = $index) {
|
|
<td class="font-monospace text-end">
|
|
<span class="{{ value === 0 ? 'text-empty pe-1' : 'pe-1' }}">{{ value }}</span>
|
|
</td>
|
|
}
|
|
<th class="{{ colors[i] }} font-monospace text-end">
|
|
<span class="{{ values[i] === 0 ? 'text-empty pe-1' : 'pe-1' }}">{{ values[i] }}</span>
|
|
</th>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
<tfoot>
|
|
<tr>
|
|
<th class="text-end">Total</th>
|
|
@for (value of seriesColTotal; track value; let i = $index) {
|
|
<th class="font-monospace text-end">
|
|
<span class="{{ value === 0 ? 'text-empty pe-1' : 'pe-1' }}">{{ value }}</span>
|
|
</th>
|
|
}
|
|
<th class="font-monospace text-end">{{ grandTotal }}</th>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|