Move USD values to separate row with label

pull/232/head
Tim Mecklem 7 years ago
parent 171903a4d3
commit a1d391c988
  1. 4
      apps/explorer_web/lib/explorer_web/templates/address/overview.html.eex
  2. 18
      apps/explorer_web/lib/explorer_web/templates/transaction/overview.html.eex

@ -21,7 +21,7 @@
<tbody>
<tr>
<th scope="row">
<%= gettext "POA Balance" %>
<%= gettext "Ether" %> <%= gettext "Balance" %>
</th>
<td data-test="address_balance">
<%= balance(@address) %>
@ -29,7 +29,7 @@
</tr>
<tr>
<th scope="row">
<%= gettext "USD Balance" %>
<%= gettext "USD" %> <%= gettext "Balance" %>
</th>
<td>
<%= formatted_usd(@address, @exchange_rate) %>

@ -54,10 +54,17 @@
</tr>
<tr>
<th scope="row">
<%= gettext "Value" %>
<%= gettext "Ether" %> <%= gettext "Value" %>
</th>
<td>
<div><%= value(@transaction) %> </div>
</td>
</tr>
<tr>
<th scope="row">
<%= gettext "USD" %> <%= gettext "Value" %>
</th>
<td>
<div><%= formatted_usd_value(@transaction, @exchange_rate) %></div>
</td>
</tr>
@ -144,10 +151,17 @@
</tr>
<tr>
<th scope="row">
<%= gettext "TX Fee" %>
<%= gettext "Ether" %> <%= gettext "TX Fee" %>
</th>
<td>
<div><%= formatted_fee(@transaction, denomination: :ether) %></div>
</td>
</tr>
<tr>
<th scope="row">
<%= gettext "USD" %> <%= gettext "TX Fee" %>
</th>
<td>
<div><%= formatted_fee(@transaction, exchange_rate: @exchange_rate) %></div>
</td>
</tr>

Loading…
Cancel
Save