style tx figures

This commit is contained in:
GroovieGermanikus 2023-10-18 12:31:24 +02:00
parent 824d938875
commit bbe5f90a49
No known key found for this signature in database
GPG Key ID: 5B6EB831A5CD2015
1 changed files with 18 additions and 4 deletions

View File

@ -3,7 +3,7 @@
<tr>
<th class="text-muted">Slot #</th>
<th class="text-muted">Block content (log scale)</th>
<th class="text-muted text-end">Tx success/processed/banking stage</th>
<th class="text-muted text-end">Tx processed/error/banking stage</th>
</tr>
</thead>
<tbody class="list">
@ -37,9 +37,23 @@
<td class="text-end">
<div class="font-monospace">
<span class="text-primary" style="display:inline-block; min-width:7em">proc:{{ block.processed_transactions }}</span>
<span class="text-warning" style="display:inline-block; min-width:4em">fail:{{ block.txerrors }}</span>
<span class="text-danger" style="display:inline-block; min-width:4em">bank:{{ block.banking_stage_errors }}</span>
<span class="" style="display:inline-block; min-width:9em">
<span class="text-primary">proc:{{ block.processed_transactions }}</span>
</span>
<span class="" style="display:inline-block; min-width:6em">
{% if block.txerrors > 0 %}
<span class="text-warning">fail:{{ block.txerrors }}</span>
{% else %}
<span class="text-secondary">fail:0</span>
{% endif %}
</span>
<span class="" style="display:inline-block; min-width:6em">
{% if block.banking_stage_errors > 0 %}
<span class="text-danger">bank:{{ block.banking_stage_errors }}</span>
{% else %}
<span class="text-secondary">bank:0</span>
{% endif %}
</span>
</div>
</td>