fixed credo, dialyzer, and gettext

pull/2480/head
slightlycyborg 5 years ago
parent b9b7ad3a4d
commit e5ca1d0e7c
  1. 4
      apps/block_scout_web/lib/block_scout_web/controllers/chain/transaction_history_chart_controller.ex
  2. 2
      apps/block_scout_web/lib/block_scout_web/templates/chain/show.html.eex
  3. 2
      apps/block_scout_web/priv/gettext/default.pot
  4. 529
      apps/block_scout_web/priv/gettext/en/LC_MESSAGES/default.po

@ -4,7 +4,7 @@ defmodule BlockScoutWeb.Chain.TransactionHistoryChartController do
alias Explorer.Chain.Transaction.History.TransactionStats
def show(conn, _params) do
with true <- ajax?(conn) do
if ajax?(conn) do
[{:history_size, history_size}] = Application.get_env(:block_scout_web, __MODULE__, 30)
latest = Date.utc_today()
@ -21,7 +21,7 @@ defmodule BlockScoutWeb.Chain.TransactionHistoryChartController do
history_data: transaction_history_data
})
else
_ -> unprocessable_entity(conn)
unprocessable_entity(conn)
end
end

@ -72,7 +72,7 @@
<%= gettext "Tx/day" %>
</span>
<span class="dashboard-banner-chart-legend-value" data-selector="tx_per_day">
<%= Cldr.Number.to_string!(Enum.at(@transaction_stats, 0).number_of_transactions, format: "#,###") %>
<%= BlockScoutWeb.Cldr.Number.to_string!(Enum.at(@transaction_stats, 0).number_of_transactions, format: "#,###") %>
</span>
</div>
<% end %>

@ -709,7 +709,7 @@ msgstr ""
#, elixir-format
#: lib/block_scout_web/templates/chain/show.html.eex:72
#: lib/block_scout_web/templates/layout/app.html.eex:61
#: lib/block_scout_web/templates/layout/app.html.eex:63
msgid "Tx/day"
msgstr ""

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save