reorder stratum job table

This commit is contained in:
Mononaut 2025-01-22 09:13:44 +00:00
parent cac62765a1
commit 2e44ea3f01
No known key found for this signature in database
GPG key ID: A3F058E41374C04E

View file

@ -7,27 +7,18 @@
<table *ngIf="poolsReady && (rows$ | async) as rows;" class="stratum-table"> <table *ngIf="poolsReady && (rows$ | async) as rows;" class="stratum-table">
<thead> <thead>
<tr> <tr>
<td class="height">Height</td>
<td class="reward">Reward</td>
<td class="tag">Coinbase Tag</td>
<td class="merkle" [attr.colspan]="rows[0]?.merkleCells?.length || 4"> <td class="merkle" [attr.colspan]="rows[0]?.merkleCells?.length || 4">
Merkle Branches Merkle Branches
</td> </td>
<td class="pool">Pool</td> <td class="pool">Pool</td>
<td class="tag">Coinbase Tag</td>
<td class="reward">Reward</td>
<td class="height">Height</td>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@for (row of rows; track row.job.pool) { @for (row of rows; track row.job.pool) {
<tr> <tr>
<td class="height">
{{ row.job.height }}
</td>
<td class="reward">
<app-amount [satoshis]="row.job.reward"></app-amount>
</td>
<td class="tag">
{{ row.job.tag }}
</td>
@for (cell of row.merkleCells; track $index) { @for (cell of row.merkleCells; track $index) {
<td class="merkle" [style.background-color]="cell.hash ? '#' + cell.hash.slice(0, 6) : ''"> <td class="merkle" [style.background-color]="cell.hash ? '#' + cell.hash.slice(0, 6) : ''">
@if ($index === 0 && cell.hash) { @if ($index === 0 && cell.hash) {
@ -47,6 +38,15 @@
</a> </a>
} }
</td> </td>
<td class="tag">
{{ row.job.tag }}
</td>
<td class="reward">
<app-amount [satoshis]="row.job.reward"></app-amount>
</td>
<td class="height">
{{ row.job.height }}
</td>
</tr> </tr>
} }
</tbody> </tbody>