Skip to content

Commit

Permalink
use delimited number for everything
Browse files Browse the repository at this point in the history
  • Loading branch information
adrienmo committed Oct 8, 2018
1 parent 100966b commit 9add55a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</p>
<p class="medium-detail-text col-2-width remove-550px">
<span class="tablet-detail-text"><%= gettext "Transactions" %></span>
<%= address.tx_count %>
<%= number_to_delimited(address.tx_count) %>
</p>
<p class="medium-detail-text col-2-width remove-550px">
<span class="tablet-detail-text"><%= gettext "Last transaction"%></span>
Expand All @@ -45,7 +45,7 @@
</div>
</section>

<p class="number-counter"><%= gettext "Addresses"%> <%= get_current_min_qtd(@page, @total) %> <%= gettext "to"%> <%= get_current_max_qtd(@page, @total) %> <%= gettext "of"%> <%= @total %></p>
<p class="number-counter"><%= gettext "Addresses"%> <%= get_current_min_qtd(@page, @total) %> <%= gettext "to"%> <%= get_current_max_qtd(@page, @total) %> <%= gettext "of"%> <%= number_to_delimited(@total) %></p>
<div class="see-all-button-container">
<div class="btn-group">
<%= if @page != 1 do %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</div>
</section>

<p class="number-counter"><%= gettext "Assets"%> <%= get_current_min_qtd(@page, @total) %> <%= gettext "to"%> <%= get_current_max_qtd(@page, @total) %> <%= gettext "of"%> <%= @total %></p>
<p class="number-counter"><%= gettext "Assets"%> <%= get_current_min_qtd(@page, @total) %> <%= gettext "to"%> <%= get_current_max_qtd(@page, @total) %> <%= gettext "of"%> <%= number_to_delimited(@total) %></p>
<div class="see-all-button-container">
<div class="btn-group">
<%= if @page != 1 do %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</li>
<li class="border-right border-bottom tooltip <%= if get_tooltips(@conn) == "on" do %>add-hover<% end %>">
<p class="small-detail-text"><%= gettext "Transactions" %></p>
<p class="large-detail-text"><%= @block.tx_count %></p>
<p class="large-detail-text"><%= number_to_delimited(@block.tx_count) %></p>
<span class="tooltiptext"><%= get_explanation("block_transactions") %></span>
</li>
<li class="border-bottom border-right-smaller remove-border-right-660px tooltip <%= if get_tooltips(@conn) == "on" do %>add-hover<% end %>">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,19 @@
<div class="secondary-info-wrapper">
<p class="medium-detail-text col-2-width">
<span class="tablet-detail-text"><%= gettext "Size"%>: </span>
<%=block.size%> <%= gettext "bytes" %>
<%= number_to_delimited(block.size) %> <%= gettext "bytes" %>
</p>
<p class="medium-detail-text col-2-width">
<span class="tablet-detail-text"><%= gettext "Transactions"%>: </span>
<%=block.tx_count%>
<%= number_to_delimited(block.tx_count) %>
</p>
<p class="medium-detail-text col-3-width">
<span class="tablet-detail-text"><%= gettext "Created"%>: </span>
<span class="utc_time"><%= render_date_time(block.time) %></span>
</p>
<p class="medium-detail-text col-1-width">
<span class="tablet-detail-text"><%= gettext "Block Time"%>: </span>
<%= block.lag %> seconds
<%= number_to_delimited(block.lag) %> seconds
</p>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions apps/neoscan_web/lib/neoscan_web/views/addresses_view.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
defmodule NeoscanWeb.AddressesView do
use NeoscanWeb, :view
import Number.Delimit
import NeoscanWeb.CommonView
end

0 comments on commit 9add55a

Please sign in to comment.