mempool/frontend/src/app/components/difficulty-adjustments-table/difficulty-adjustments-table.component.html

34 lines
1.5 KiB
HTML
Raw Normal View History

2022-05-24 11:19:09 +02:00
<div style="min-height: 335px">
<table class="table latest-adjustments">
<thead>
<tr>
2023-03-19 15:23:00 +09:00
<th class="" i18n="block.height">Height</th>
<th class="date text-left" i18n="mining.adjusted">Adjusted</th>
<th class="text-right" i18n="mining.difficulty">Difficulty</th>
<th class="text-right" i18n="mining.change">Change</th>
</tr>
</thead>
<tbody *ngIf="(hashrateObservable$ | async) as data">
2022-06-25 12:14:32 +02:00
<tr *ngFor="let diffChange of data">
2023-03-19 15:23:00 +09:00
<td class="">
<a [routerLink]="['/block' | relativeUrl, diffChange.height]">{{ diffChange.height }}</a>
</td>
<td class="date text-left">
<app-time kind="since" [time]="diffChange.timestamp" [fastRender]="true" [precision]="1"></app-time>
</td>
<td class="text-right">{{ diffChange.difficultyShorten }}</td>
<td class="text-right" [style]="diffChange.change >= 0 ? 'color: #42B747' : 'color: #B74242'">
2022-06-25 12:14:32 +02:00
{{ diffChange.change >= 0 ? '+' : '' }}{{ diffChange.change | amountShortener: 2 }}%
</td>
</tr>
</tbody>
<tbody *ngIf="isLoading">
2022-05-12 17:05:31 +02:00
<tr *ngFor="let item of [1,2,3,4,5,6]">
2023-03-19 15:23:00 +09:00
<td class=""><span class="skeleton-loader"></span></td>
<td class="date text-left"><span class="skeleton-loader w-75"></span></td>
<td class="text-right"><span class="skeleton-loader w-75"></span></td>
<td class="text-right"><span class="skeleton-loader w-75"></span></td>
</tr>
</tbody>
</table>
</div>