Browse Source

Blocks & USD Price

cd www
ember install ember-truth-helpers

https://www.npmjs.com/package/ember-truth-helpers
master
yuriy0803 2 years ago
parent
commit
a08408fec1
  1. 22
      www/app/templates/account/rewards.hbs

22
www/app/templates/account/rewards.hbs

@ -2,12 +2,33 @@
{{#if model.rewards}} {{#if model.rewards}}
<h4>Your Latest Rewards</h4> <h4>Your Latest Rewards</h4>
<table class="table table-condensed table-striped"> <table class="table table-condensed table-striped">
<thead>
<tr>
<th>Time</th>
<th>Blocks</th>
<th>Amount</th>
<th>USD</th>
</tr>
</thead>
<tbody>
{{#each model.sumrewards as |sumreward|}} {{#each model.sumrewards as |sumreward|}}
<tr> <tr>
<td>{{sumreward.name}}</td> <td>{{sumreward.name}}</td>
<td>{{sumreward.blocks}}</td>
<td>{{format-balance sumreward.reward}}</td> <td>{{format-balance sumreward.reward}}</td>
<td><em>
{{#if (eq config.Currency 'USD') }}
{{format-ethusd sumreward.reward model.exchangedata.current_price}}
{{else}}
{{format-ethinr sumreward.reward model.exchangedata.price_inr}}
{{/if}}
</em></td>
</tr> </tr>
{{/each}} {{/each}}
</tbody>
</table> </table>
<span class="label label-default">Immature</span> <span class="label label-success">Matured</span> <span class="label label-default">Immature</span> <span class="label label-success">Matured</span>
<table class="table table-condensed table-striped"> <table class="table table-condensed table-striped">
@ -17,6 +38,7 @@
<th>Time Found</th> <th>Time Found</th>
<th>Reward</th> <th>Reward</th>
<th>Round Share</th> <th>Round Share</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>

Loading…
Cancel
Save