Browse Source

web-ui: Improve the richest addresses view (fixes #16)

The percent of coins is rendered with two decimals, also, a percentage bar was added.
prometheus-integration
mario128mex 7 years ago
committed by Alexis Hernandez
parent
commit
84be16a757
  1. 9
      web-ui/src/app/components/richest-addresses/richest-addresses.component.html

9
web-ui/src/app/components/richest-addresses/richest-addresses.component.html

@ -23,7 +23,14 @@
</td>
<td>{{item.available}} {{'label.coinName' | translate}}</td>
<td *ngIf="ticker == null || ticker.circulatingSupply == null">{{'message.unavailable' | translate}}</td>
<td *ngIf="ticker != null && ticker.circulatingSupply != null">{{getPercent(item)}} %</td>
<td *ngIf="ticker != null && ticker.circulatingSupply != null">
<div
with="100%"
[ngStyle]="{'background': 'linear-gradient(to right, rgb(240, 237, 255) ' + (getPercent(item)) + '%, rgba(0,0,0,0) 0%)'}"
>
{{getPercent(item) | number:'1.2-2'}} %
</div>
</td>
</tr>
</tbody>
</table>

Loading…
Cancel
Save