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

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

Loading…
Cancel
Save