Update ages in real-time
pull/347/head
Jimmy Lauzau 7 years ago committed by GitHub
commit c2925892ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      apps/explorer/lib/explorer/chain/statistics.ex
  2. 7
      apps/explorer_web/assets/js/app.js
  3. 28
      apps/explorer_web/assets/js/lib/from_now.js
  4. 2
      apps/explorer_web/lib/explorer_web/templates/address_internal_transaction/index.html.eex
  5. 2
      apps/explorer_web/lib/explorer_web/templates/address_transaction/index.html.eex
  6. 2
      apps/explorer_web/lib/explorer_web/templates/block/index.html.eex
  7. 6
      apps/explorer_web/lib/explorer_web/templates/block_transaction/index.html.eex
  8. 2
      apps/explorer_web/lib/explorer_web/templates/chain/_blocks.html.eex
  9. 2
      apps/explorer_web/lib/explorer_web/templates/chain/_transactions.html.eex
  10. 2
      apps/explorer_web/lib/explorer_web/templates/chain/show.html.eex
  11. 3
      apps/explorer_web/lib/explorer_web/templates/layout/app.html.eex
  12. 2
      apps/explorer_web/lib/explorer_web/templates/pending_transaction/index.html.eex
  13. 4
      apps/explorer_web/lib/explorer_web/templates/transaction/index.html.eex
  14. 18
      apps/explorer_web/lib/explorer_web/templates/transaction/overview.html.eex
  15. 1
      apps/explorer_web/lib/explorer_web/views/block_transaction_view.ex
  16. 4
      apps/explorer_web/lib/explorer_web/views/block_view.ex
  17. 4
      apps/explorer_web/lib/explorer_web/views/pending_transaction_view.ex
  18. 22
      apps/explorer_web/lib/explorer_web/views/transaction_view.ex
  19. 53
      apps/explorer_web/priv/gettext/default.pot
  20. 53
      apps/explorer_web/priv/gettext/en/LC_MESSAGES/default.po

@ -100,7 +100,7 @@ defmodule Explorer.Chain.Statistics do
lag: %Duration{seconds: 0, megaseconds: 0, microseconds: 0}, lag: %Duration{seconds: 0, megaseconds: 0, microseconds: 0},
number: -1, number: -1,
skipped_blocks: 0, skipped_blocks: 0,
timestamp: :calendar.universal_time(), timestamp: nil,
transaction_count: 0, transaction_count: 0,
transaction_velocity: 0, transaction_velocity: 0,
transactions: [] transactions: []

@ -19,8 +19,9 @@ import 'bootstrap'
// paths "./socket" or full ones "web/static/js/socket". // paths "./socket" or full ones "web/static/js/socket".
// import socket from "./socket" // import socket from "./socket"
import './lib/sidebar'
import './lib/market_history_chart'
import './lib/card_flip' import './lib/card_flip'
import './lib/tooltip'
import './lib/clipboard_buttons' import './lib/clipboard_buttons'
import './lib/from_now'
import './lib/market_history_chart'
import './lib/sidebar'
import './lib/tooltip'

@ -0,0 +1,28 @@
import $ from 'jquery'
import moment from 'moment'
moment.locale(window.locale)
moment.relativeTimeThreshold('M', 12)
moment.relativeTimeThreshold('d', 30)
moment.relativeTimeThreshold('h', 24)
moment.relativeTimeThreshold('m', 60)
moment.relativeTimeThreshold('s', 60)
moment.relativeTimeThreshold('ss', 1)
function updateAllAges () {
$('[data-from-now]').each((i, el) => tryUpdateAge(el))
}
function tryUpdateAge (el) {
if (!el.dataset.fromNow) return
const timestamp = moment(el.dataset.fromNow)
if (timestamp.isValid()) updateAge(el, timestamp)
}
function updateAge (el, timestamp) {
const fromNow = timestamp.fromNow()
if (fromNow !== el.innerHTML) el.innerHTML = fromNow
}
updateAllAges()
setInterval(updateAllAges, 1000)

@ -98,7 +98,7 @@
to: block_path(@conn, :show, @conn.assigns.locale, internal_transaction.transaction.block) to: block_path(@conn, :show, @conn.assigns.locale, internal_transaction.transaction.block)
) %> ) %>
</td> </td>
<td><%= ExplorerWeb.BlockView.age(internal_transaction.transaction.block) %></td> <td data-from-now="<%= internal_transaction.transaction.block.timestamp %>"></td>
<td> <td>
<%= render ExplorerWeb.AddressView, "_link.html", conn: @conn, address: internal_transaction.from_address %> <%= render ExplorerWeb.AddressView, "_link.html", conn: @conn, address: internal_transaction.from_address %>
</td> </td>

@ -106,7 +106,7 @@
to: block_path(@conn, :show, @conn.assigns.locale, transaction.block) to: block_path(@conn, :show, @conn.assigns.locale, transaction.block)
) %> ) %>
</td> </td>
<td><%= transaction.block.timestamp |> Timex.from_now %></td> <td data-from-now="<%= transaction.block.timestamp %>"></td>
<td class="address-cell"> <td class="address-cell">
<%= render ExplorerWeb.AddressView, "_link.html", conn: @conn, address: transaction.from_address %> <%= render ExplorerWeb.AddressView, "_link.html", conn: @conn, address: transaction.from_address %>
</td> </td>

@ -34,7 +34,7 @@
"data-block-number": to_string(block.number) "data-block-number": to_string(block.number)
) %> ) %>
</td> </td>
<td><%= block.timestamp |> Timex.from_now %></td> <td data-from-now="<%= block.timestamp %>"></td>
<td> <td>
<%= gettext("%{count} transactions", count: block.transactions |> Enum.count) %> <%= gettext("%{count} transactions", count: block.transactions |> Enum.count) %>
</td> </td>

@ -14,7 +14,7 @@
<%= gettext "Timestamp" %> <%= gettext "Timestamp" %>
</th> </th>
<td> <td>
<%= age(@block) %> (<%= formatted_timestamp(@block) %>) <span data-from-now="<%= @block.timestamp %>"></span> (<%= formatted_timestamp(@block) %>)
</td> </td>
</tr> </tr>
<tr> <tr>
@ -160,9 +160,7 @@
to: block_path(@conn, :show, @conn.assigns.locale, transaction.block) to: block_path(@conn, :show, @conn.assigns.locale, transaction.block)
) %> ) %>
</td> </td>
<td> <td data-from-now="<%= transaction.block.timestamp %>"></td>
<%= transaction.block.timestamp |> Timex.from_now %>
</td>
<td class="address-cell"> <td class="address-cell">
<%= render ExplorerWeb.AddressView, "_link.html", conn: @conn, address: transaction.from_address %> <%= render ExplorerWeb.AddressView, "_link.html", conn: @conn, address: transaction.from_address %>
</td> </td>

@ -17,7 +17,7 @@
<img src="<%= static_path(@conn, "/images/block.svg") %>" /> <img src="<%= static_path(@conn, "/images/block.svg") %>" />
<%= link(block, to: block_path(@conn, :show, @conn.assigns.locale, block)) %> <%= link(block, to: block_path(@conn, :show, @conn.assigns.locale, block)) %>
</td> </td>
<td><%= block.timestamp |> Timex.from_now %></td> <td data-from-now="<%= block.timestamp %>"></td>
<td><%= block.transactions |> Enum.count %></td> <td><%= block.transactions |> Enum.count %></td>
<td><%= block.gas_used |> Cldr.Number.to_string! %></td> <td><%= block.gas_used |> Cldr.Number.to_string! %></td>
<td> <td>

@ -36,7 +36,7 @@
<% end %> <% end %>
</td> </td>
<td><%= ExplorerWeb.TransactionView.value(transaction, include_label: false) %> </td> <td><%= ExplorerWeb.TransactionView.value(transaction, include_label: false) %> </td>
<td><%= transaction.block.timestamp |> Timex.from_now() %></td> <td data-from-now="<%= transaction.block.timestamp %>"></td>
</tr> </tr>
<% end %> <% end %>
</tbody> </tbody>

@ -10,7 +10,7 @@
<div class="d-flex flex-column justify-content-center align-items-center"> <div class="d-flex flex-column justify-content-center align-items-center">
<%= render ExplorerWeb.IconsView, "_hourglass_icon.html", assigns %> <%= render ExplorerWeb.IconsView, "_hourglass_icon.html", assigns %>
<div> <%= gettext("Last Block") %></div> <div> <%= gettext("Last Block") %></div>
<div> <%= @chain.timestamp |> Timex.from_now() %></div> <div data-from-now="<%= @chain.timestamp %>"></div>
</div> </div>
<div class="d-flex flex-column justify-content-center align-items-center"> <div class="d-flex flex-column justify-content-center align-items-center">
<div class="stroke"> <%= render ExplorerWeb.IconsView, "_guage_icon.html", assigns %> </div> <div class="stroke"> <%= render ExplorerWeb.IconsView, "_guage_icon.html", assigns %> </div>

@ -6,6 +6,9 @@
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<title><%= gettext "POA Network Explorer" %></title> <title><%= gettext "POA Network Explorer" %></title>
<link rel="stylesheet" href="<%= static_path(@conn, "/css/app.css") %>"> <link rel="stylesheet" href="<%= static_path(@conn, "/css/app.css") %>">
<script>
window.locale = '<%= @conn.assigns.locale %>'
</script>
</head> </head>
<body> <body>

@ -48,7 +48,7 @@
<td> <td>
<%= render ExplorerWeb.TransactionView, "_link.html", conn: @conn, transaction: transaction %> <%= render ExplorerWeb.TransactionView, "_link.html", conn: @conn, transaction: transaction %>
</td> </td>
<td><%= last_seen(transaction) %></td> <td data-from-now="<%= transaction.updated_at %>"></td>
<td> <td>
<%= render ExplorerWeb.AddressView, "_link.html", conn: @conn, address: transaction.from_address %> <%= render ExplorerWeb.AddressView, "_link.html", conn: @conn, address: transaction.from_address %>
</td> </td>

@ -55,9 +55,7 @@
to: block_path(@conn, :show, @conn.assigns.locale, transaction.block) to: block_path(@conn, :show, @conn.assigns.locale, transaction.block)
) %> ) %>
</td> </td>
<td> <td data-from-now="<%= transaction.block.timestamp %>"></td>
<%= transaction.block.timestamp %>
</td>
<td> <td>
<%= render ExplorerWeb.AddressView, "_link.html", conn: @conn, address: transaction.from_address %> <%= render ExplorerWeb.AddressView, "_link.html", conn: @conn, address: transaction.from_address %>
</td> </td>

@ -48,8 +48,12 @@
<th scope="row"> <th scope="row">
<%= gettext "Age" %> <%= gettext "Age" %>
</th> </th>
<td title="<%= formatted_timestamp(@transaction) %>"> <td>
<%= formatted_age(@transaction) %> <%= if block do %>
<span data-from-now="<%= @transaction.block.timestamp %>"></span> (<%= formatted_timestamp(@transaction.block) %>)
<% else %>
<%= gettext "Pending" %>
<% end %>
</td> </td>
</tr> </tr>
<tr> <tr>
@ -121,19 +125,13 @@
<th scope="row"> <th scope="row">
<%= gettext "First Seen" %> <%= gettext "First Seen" %>
</th> </th>
<% first_seen = first_seen(@transaction) %> <td data-from-now="<%= @transaction.inserted_at %>"></td>
<td title="<%= first_seen %>">
<%= first_seen %>
</td>
</tr> </tr>
<tr> <tr>
<th scope="row"> <th scope="row">
<%= gettext "Last Seen" %> <%= gettext "Last Seen" %>
</th> </th>
<% last_seen = last_seen(@transaction) %> <td data-from-now="<%= @transaction.updated_at %>"></td>
<td title="<%= last_seen %>">
<%= last_seen %>
</td>
</tr> </tr>
<tr> <tr>
<th scope="row"> <th scope="row">

@ -3,7 +3,6 @@ defmodule ExplorerWeb.BlockTransactionView do
alias ExplorerWeb.{BlockView, TransactionView} alias ExplorerWeb.{BlockView, TransactionView}
defdelegate age(block), to: BlockView
defdelegate formatted_timestamp(block), to: BlockView defdelegate formatted_timestamp(block), to: BlockView
defdelegate status(transacton), to: TransactionView defdelegate status(transacton), to: TransactionView
end end

@ -7,10 +7,6 @@ defmodule ExplorerWeb.BlockView do
@dialyzer :no_match @dialyzer :no_match
def age(%Block{timestamp: timestamp}) do
Timex.from_now(timestamp)
end
def average_gas_price(%Block{transactions: transactions}) do def average_gas_price(%Block{transactions: transactions}) do
average = average =
transactions transactions

@ -1,9 +1,5 @@
defmodule ExplorerWeb.PendingTransactionView do defmodule ExplorerWeb.PendingTransactionView do
use ExplorerWeb, :view use ExplorerWeb, :view
alias ExplorerWeb.TransactionView
@dialyzer :no_match @dialyzer :no_match
defdelegate last_seen(transaction), to: TransactionView
end end

@ -53,10 +53,6 @@ defmodule ExplorerWeb.TransactionView do
{fee_type, formatted} {fee_type, formatted}
end end
def first_seen(%Transaction{inserted_at: inserted_at}) do
Timex.from_now(inserted_at)
end
def format_gas_limit(gas) do def format_gas_limit(gas) do
Number.to_string!(gas) Number.to_string!(gas)
end end
@ -67,19 +63,7 @@ defmodule ExplorerWeb.TransactionView do
format_usd_value(USD.from(value, token)) format_usd_value(USD.from(value, token))
end end
def formatted_age(%Transaction{block: block}) do defdelegate formatted_timestamp(block), to: BlockView
case block do
nil -> gettext("Pending")
_ -> "#{BlockView.age(block)} (#{BlockView.formatted_timestamp(block)})"
end
end
def formatted_timestamp(%Transaction{block: block}) do
case block do
nil -> gettext("Pending")
_ -> BlockView.formatted_timestamp(block)
end
end
defguardp is_transaction_type(mod) when mod in [InternalTransaction, Transaction] defguardp is_transaction_type(mod) when mod in [InternalTransaction, Transaction]
@ -98,10 +82,6 @@ defmodule ExplorerWeb.TransactionView do
to_string(hash) to_string(hash)
end end
def last_seen(%Transaction{updated_at: updated_at}) do
Timex.from_now(updated_at)
end
def status(transaction) do def status(transaction) do
Chain.transaction_to_status(transaction) Chain.transaction_to_status(transaction)
end end

@ -28,7 +28,7 @@ msgstr ""
#: lib/explorer_web/templates/block/index.html.eex:20 #: lib/explorer_web/templates/block/index.html.eex:20
#: lib/explorer_web/templates/block_transaction/index.html.eex:88 #: lib/explorer_web/templates/block_transaction/index.html.eex:88
#: lib/explorer_web/templates/transaction/overview.html.eex:173 #: lib/explorer_web/templates/transaction/overview.html.eex:171
#: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:34 #: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:34
msgid "Gas Used" msgid "Gas Used"
msgstr "" msgstr ""
@ -66,8 +66,8 @@ msgstr ""
#: lib/explorer_web/templates/chain/_transactions.html.eex:10 #: lib/explorer_web/templates/chain/_transactions.html.eex:10
#: lib/explorer_web/templates/pending_transaction/index.html.eex:39 #: lib/explorer_web/templates/pending_transaction/index.html.eex:39
#: lib/explorer_web/templates/transaction/index.html.eex:39 #: lib/explorer_web/templates/transaction/index.html.eex:39
#: lib/explorer_web/templates/transaction/overview.html.eex:57 #: lib/explorer_web/templates/transaction/overview.html.eex:61
#: lib/explorer_web/templates/transaction/overview.html.eex:65 #: lib/explorer_web/templates/transaction/overview.html.eex:69
#: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:33 #: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:33
msgid "Value" msgid "Value"
msgstr "" msgstr ""
@ -82,7 +82,7 @@ msgstr ""
#: lib/explorer_web/templates/block/index.html.eex:21 #: lib/explorer_web/templates/block/index.html.eex:21
#: lib/explorer_web/templates/block_transaction/index.html.eex:96 #: lib/explorer_web/templates/block_transaction/index.html.eex:96
#: lib/explorer_web/templates/transaction/overview.html.eex:140 #: lib/explorer_web/templates/transaction/overview.html.eex:138
msgid "Gas Limit" msgid "Gas Limit"
msgstr "" msgstr ""
@ -91,7 +91,7 @@ msgid "Miner"
msgstr "" msgstr ""
#: lib/explorer_web/templates/block_transaction/index.html.eex:104 #: lib/explorer_web/templates/block_transaction/index.html.eex:104
#: lib/explorer_web/templates/transaction/overview.html.eex:108 #: lib/explorer_web/templates/transaction/overview.html.eex:112
msgid "Nonce" msgid "Nonce"
msgstr "" msgstr ""
@ -134,11 +134,11 @@ msgid "Gas"
msgstr "" msgstr ""
#: lib/explorer_web/templates/block/index.html.eex:22 #: lib/explorer_web/templates/block/index.html.eex:22
#: lib/explorer_web/templates/transaction/overview.html.eex:148 #: lib/explorer_web/templates/transaction/overview.html.eex:146
msgid "Gas Price" msgid "Gas Price"
msgstr "" msgstr ""
#: lib/explorer_web/templates/transaction/overview.html.eex:181 #: lib/explorer_web/templates/transaction/overview.html.eex:179
msgid "Input" msgid "Input"
msgstr "" msgstr ""
@ -163,7 +163,7 @@ msgstr ""
#: lib/explorer_web/templates/chain/_transactions.html.eex:8 #: lib/explorer_web/templates/chain/_transactions.html.eex:8
#: lib/explorer_web/templates/pending_transaction/index.html.eex:37 #: lib/explorer_web/templates/pending_transaction/index.html.eex:37
#: lib/explorer_web/templates/transaction/index.html.eex:37 #: lib/explorer_web/templates/transaction/index.html.eex:37
#: lib/explorer_web/templates/transaction/overview.html.eex:73 #: lib/explorer_web/templates/transaction/overview.html.eex:77
#: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:31 #: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:31
#: lib/explorer_web/views/address_internal_transaction_view.ex:9 #: lib/explorer_web/views/address_internal_transaction_view.ex:9
#: lib/explorer_web/views/address_transaction_view.ex:11 #: lib/explorer_web/views/address_transaction_view.ex:11
@ -175,7 +175,7 @@ msgstr ""
msgid "Overview" msgid "Overview"
msgstr "" msgstr ""
#: lib/explorer_web/views/transaction_view.ex:116 #: lib/explorer_web/views/transaction_view.ex:96
msgid "Success" msgid "Success"
msgstr "" msgstr ""
@ -187,7 +187,7 @@ msgstr ""
#: lib/explorer_web/templates/chain/_transactions.html.eex:9 #: lib/explorer_web/templates/chain/_transactions.html.eex:9
#: lib/explorer_web/templates/pending_transaction/index.html.eex:38 #: lib/explorer_web/templates/pending_transaction/index.html.eex:38
#: lib/explorer_web/templates/transaction/index.html.eex:38 #: lib/explorer_web/templates/transaction/index.html.eex:38
#: lib/explorer_web/templates/transaction/overview.html.eex:85 #: lib/explorer_web/templates/transaction/overview.html.eex:89
#: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:32 #: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:32
#: lib/explorer_web/views/address_internal_transaction_view.ex:8 #: lib/explorer_web/views/address_internal_transaction_view.ex:8
#: lib/explorer_web/views/address_transaction_view.ex:10 #: lib/explorer_web/views/address_transaction_view.ex:10
@ -232,19 +232,18 @@ msgstr ""
#: lib/explorer_web/templates/pending_transaction/index.html.eex:21 #: lib/explorer_web/templates/pending_transaction/index.html.eex:21
#: lib/explorer_web/templates/transaction/index.html.eex:21 #: lib/explorer_web/templates/transaction/index.html.eex:21
#: lib/explorer_web/templates/transaction/overview.html.eex:55
#: lib/explorer_web/views/transaction_view.ex:18 #: lib/explorer_web/views/transaction_view.ex:18
#: lib/explorer_web/views/transaction_view.ex:72 #: lib/explorer_web/views/transaction_view.ex:95
#: lib/explorer_web/views/transaction_view.ex:79
#: lib/explorer_web/views/transaction_view.ex:115
msgid "Pending" msgid "Pending"
msgstr "" msgstr ""
#: lib/explorer_web/templates/transaction/overview.html.eex:122 #: lib/explorer_web/templates/transaction/overview.html.eex:126
msgid "First Seen" msgid "First Seen"
msgstr "" msgstr ""
#: lib/explorer_web/templates/pending_transaction/index.html.eex:36 #: lib/explorer_web/templates/pending_transaction/index.html.eex:36
#: lib/explorer_web/templates/transaction/overview.html.eex:131 #: lib/explorer_web/templates/transaction/overview.html.eex:132
msgid "Last Seen" msgid "Last Seen"
msgstr "" msgstr ""
@ -297,11 +296,11 @@ msgstr ""
msgid "Next Page" msgid "Next Page"
msgstr "" msgstr ""
#: lib/explorer_web/views/transaction_view.ex:113 #: lib/explorer_web/views/transaction_view.ex:93
msgid "Failed" msgid "Failed"
msgstr "" msgstr ""
#: lib/explorer_web/views/transaction_view.ex:114 #: lib/explorer_web/views/transaction_view.ex:94
msgid "Out of Gas" msgid "Out of Gas"
msgstr "" msgstr ""
@ -326,14 +325,14 @@ msgstr ""
#: lib/explorer_web/templates/chain/_transactions.html.eex:10 #: lib/explorer_web/templates/chain/_transactions.html.eex:10
#: lib/explorer_web/templates/pending_transaction/index.html.eex:39 #: lib/explorer_web/templates/pending_transaction/index.html.eex:39
#: lib/explorer_web/templates/transaction/index.html.eex:39 #: lib/explorer_web/templates/transaction/index.html.eex:39
#: lib/explorer_web/templates/transaction/overview.html.eex:57 #: lib/explorer_web/templates/transaction/overview.html.eex:61
#: lib/explorer_web/templates/transaction/overview.html.eex:157 #: lib/explorer_web/templates/transaction/overview.html.eex:155
#: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:33 #: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:33
#: lib/explorer_web/views/wei_helpers.ex:71 #: lib/explorer_web/views/wei_helpers.ex:71
msgid "Ether" msgid "Ether"
msgstr "" msgstr ""
#: lib/explorer_web/views/block_view.ex:22 #: lib/explorer_web/views/block_view.ex:18
#: lib/explorer_web/views/wei_helpers.ex:70 #: lib/explorer_web/views/wei_helpers.ex:70
msgid "Gwei" msgid "Gwei"
msgstr "" msgstr ""
@ -420,8 +419,8 @@ msgid "Price"
msgstr "" msgstr ""
#: lib/explorer_web/templates/address/overview.html.eex:32 #: lib/explorer_web/templates/address/overview.html.eex:32
#: lib/explorer_web/templates/transaction/overview.html.eex:65 #: lib/explorer_web/templates/transaction/overview.html.eex:69
#: lib/explorer_web/templates/transaction/overview.html.eex:165 #: lib/explorer_web/templates/transaction/overview.html.eex:163
#: lib/explorer_web/views/currency_helpers.ex:32 #: lib/explorer_web/views/currency_helpers.ex:32
msgid "USD" msgid "USD"
msgstr "" msgstr ""
@ -475,8 +474,8 @@ msgstr ""
msgid "View All" msgid "View All"
msgstr "" msgstr ""
#: lib/explorer_web/templates/transaction/overview.html.eex:157 #: lib/explorer_web/templates/transaction/overview.html.eex:155
#: lib/explorer_web/templates/transaction/overview.html.eex:165 #: lib/explorer_web/templates/transaction/overview.html.eex:163
msgid "TX Fee" msgid "TX Fee"
msgstr "" msgstr ""
@ -494,16 +493,16 @@ msgid "Contract bytecode"
msgstr "" msgstr ""
#: lib/explorer_web/templates/address_transaction/index.html.eex:137 #: lib/explorer_web/templates/address_transaction/index.html.eex:137
#: lib/explorer_web/templates/block_transaction/index.html.eex:194 #: lib/explorer_web/templates/block_transaction/index.html.eex:192
msgid "There are no Transactions" msgid "There are no Transactions"
msgstr "" msgstr ""
#: lib/explorer_web/templates/address_internal_transaction/index.html.eex:131 #: lib/explorer_web/templates/address_internal_transaction/index.html.eex:131
#: lib/explorer_web/templates/address_transaction/index.html.eex:143 #: lib/explorer_web/templates/address_transaction/index.html.eex:143
#: lib/explorer_web/templates/block/index.html.eex:60 #: lib/explorer_web/templates/block/index.html.eex:60
#: lib/explorer_web/templates/block_transaction/index.html.eex:200 #: lib/explorer_web/templates/block_transaction/index.html.eex:198
#: lib/explorer_web/templates/pending_transaction/index.html.eex:69 #: lib/explorer_web/templates/pending_transaction/index.html.eex:69
#: lib/explorer_web/templates/transaction/index.html.eex:90 #: lib/explorer_web/templates/transaction/index.html.eex:88
#: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:71 #: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:71
msgid "Older" msgid "Older"
msgstr "" msgstr ""

@ -40,7 +40,7 @@ msgstr "%{year} POA Network Ltd. All rights reserved"
#: lib/explorer_web/templates/block/index.html.eex:20 #: lib/explorer_web/templates/block/index.html.eex:20
#: lib/explorer_web/templates/block_transaction/index.html.eex:88 #: lib/explorer_web/templates/block_transaction/index.html.eex:88
#: lib/explorer_web/templates/transaction/overview.html.eex:173 #: lib/explorer_web/templates/transaction/overview.html.eex:171
#: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:34 #: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:34
msgid "Gas Used" msgid "Gas Used"
msgstr "Gas Used" msgstr "Gas Used"
@ -78,8 +78,8 @@ msgstr "Transactions"
#: lib/explorer_web/templates/chain/_transactions.html.eex:10 #: lib/explorer_web/templates/chain/_transactions.html.eex:10
#: lib/explorer_web/templates/pending_transaction/index.html.eex:39 #: lib/explorer_web/templates/pending_transaction/index.html.eex:39
#: lib/explorer_web/templates/transaction/index.html.eex:39 #: lib/explorer_web/templates/transaction/index.html.eex:39
#: lib/explorer_web/templates/transaction/overview.html.eex:57 #: lib/explorer_web/templates/transaction/overview.html.eex:61
#: lib/explorer_web/templates/transaction/overview.html.eex:65 #: lib/explorer_web/templates/transaction/overview.html.eex:69
#: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:33 #: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:33
msgid "Value" msgid "Value"
msgstr "Value" msgstr "Value"
@ -94,7 +94,7 @@ msgstr "Difficulty"
#: lib/explorer_web/templates/block/index.html.eex:21 #: lib/explorer_web/templates/block/index.html.eex:21
#: lib/explorer_web/templates/block_transaction/index.html.eex:96 #: lib/explorer_web/templates/block_transaction/index.html.eex:96
#: lib/explorer_web/templates/transaction/overview.html.eex:140 #: lib/explorer_web/templates/transaction/overview.html.eex:138
msgid "Gas Limit" msgid "Gas Limit"
msgstr "Gas Limit" msgstr "Gas Limit"
@ -103,7 +103,7 @@ msgid "Miner"
msgstr "Validator" msgstr "Validator"
#: lib/explorer_web/templates/block_transaction/index.html.eex:104 #: lib/explorer_web/templates/block_transaction/index.html.eex:104
#: lib/explorer_web/templates/transaction/overview.html.eex:108 #: lib/explorer_web/templates/transaction/overview.html.eex:112
msgid "Nonce" msgid "Nonce"
msgstr "Nonce" msgstr "Nonce"
@ -146,11 +146,11 @@ msgid "Gas"
msgstr "Gas" msgstr "Gas"
#: lib/explorer_web/templates/block/index.html.eex:22 #: lib/explorer_web/templates/block/index.html.eex:22
#: lib/explorer_web/templates/transaction/overview.html.eex:148 #: lib/explorer_web/templates/transaction/overview.html.eex:146
msgid "Gas Price" msgid "Gas Price"
msgstr "Gas Price" msgstr "Gas Price"
#: lib/explorer_web/templates/transaction/overview.html.eex:181 #: lib/explorer_web/templates/transaction/overview.html.eex:179
msgid "Input" msgid "Input"
msgstr "Input" msgstr "Input"
@ -175,7 +175,7 @@ msgstr "Address"
#: lib/explorer_web/templates/chain/_transactions.html.eex:8 #: lib/explorer_web/templates/chain/_transactions.html.eex:8
#: lib/explorer_web/templates/pending_transaction/index.html.eex:37 #: lib/explorer_web/templates/pending_transaction/index.html.eex:37
#: lib/explorer_web/templates/transaction/index.html.eex:37 #: lib/explorer_web/templates/transaction/index.html.eex:37
#: lib/explorer_web/templates/transaction/overview.html.eex:73 #: lib/explorer_web/templates/transaction/overview.html.eex:77
#: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:31 #: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:31
#: lib/explorer_web/views/address_internal_transaction_view.ex:9 #: lib/explorer_web/views/address_internal_transaction_view.ex:9
#: lib/explorer_web/views/address_transaction_view.ex:11 #: lib/explorer_web/views/address_transaction_view.ex:11
@ -187,7 +187,7 @@ msgstr "From"
msgid "Overview" msgid "Overview"
msgstr "Overview" msgstr "Overview"
#: lib/explorer_web/views/transaction_view.ex:116 #: lib/explorer_web/views/transaction_view.ex:96
msgid "Success" msgid "Success"
msgstr "Success" msgstr "Success"
@ -199,7 +199,7 @@ msgstr "Success"
#: lib/explorer_web/templates/chain/_transactions.html.eex:9 #: lib/explorer_web/templates/chain/_transactions.html.eex:9
#: lib/explorer_web/templates/pending_transaction/index.html.eex:38 #: lib/explorer_web/templates/pending_transaction/index.html.eex:38
#: lib/explorer_web/templates/transaction/index.html.eex:38 #: lib/explorer_web/templates/transaction/index.html.eex:38
#: lib/explorer_web/templates/transaction/overview.html.eex:85 #: lib/explorer_web/templates/transaction/overview.html.eex:89
#: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:32 #: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:32
#: lib/explorer_web/views/address_internal_transaction_view.ex:8 #: lib/explorer_web/views/address_internal_transaction_view.ex:8
#: lib/explorer_web/views/address_transaction_view.ex:10 #: lib/explorer_web/views/address_transaction_view.ex:10
@ -244,19 +244,18 @@ msgstr "Showing %{count} Transactions"
#: lib/explorer_web/templates/pending_transaction/index.html.eex:21 #: lib/explorer_web/templates/pending_transaction/index.html.eex:21
#: lib/explorer_web/templates/transaction/index.html.eex:21 #: lib/explorer_web/templates/transaction/index.html.eex:21
#: lib/explorer_web/templates/transaction/overview.html.eex:55
#: lib/explorer_web/views/transaction_view.ex:18 #: lib/explorer_web/views/transaction_view.ex:18
#: lib/explorer_web/views/transaction_view.ex:72 #: lib/explorer_web/views/transaction_view.ex:95
#: lib/explorer_web/views/transaction_view.ex:79
#: lib/explorer_web/views/transaction_view.ex:115
msgid "Pending" msgid "Pending"
msgstr "Pending" msgstr "Pending"
#: lib/explorer_web/templates/transaction/overview.html.eex:122 #: lib/explorer_web/templates/transaction/overview.html.eex:126
msgid "First Seen" msgid "First Seen"
msgstr "" msgstr ""
#: lib/explorer_web/templates/pending_transaction/index.html.eex:36 #: lib/explorer_web/templates/pending_transaction/index.html.eex:36
#: lib/explorer_web/templates/transaction/overview.html.eex:131 #: lib/explorer_web/templates/transaction/overview.html.eex:132
msgid "Last Seen" msgid "Last Seen"
msgstr "" msgstr ""
@ -309,11 +308,11 @@ msgstr ""
msgid "Next Page" msgid "Next Page"
msgstr "" msgstr ""
#: lib/explorer_web/views/transaction_view.ex:113 #: lib/explorer_web/views/transaction_view.ex:93
msgid "Failed" msgid "Failed"
msgstr "" msgstr ""
#: lib/explorer_web/views/transaction_view.ex:114 #: lib/explorer_web/views/transaction_view.ex:94
msgid "Out of Gas" msgid "Out of Gas"
msgstr "" msgstr ""
@ -338,14 +337,14 @@ msgstr ""
#: lib/explorer_web/templates/chain/_transactions.html.eex:10 #: lib/explorer_web/templates/chain/_transactions.html.eex:10
#: lib/explorer_web/templates/pending_transaction/index.html.eex:39 #: lib/explorer_web/templates/pending_transaction/index.html.eex:39
#: lib/explorer_web/templates/transaction/index.html.eex:39 #: lib/explorer_web/templates/transaction/index.html.eex:39
#: lib/explorer_web/templates/transaction/overview.html.eex:57 #: lib/explorer_web/templates/transaction/overview.html.eex:61
#: lib/explorer_web/templates/transaction/overview.html.eex:157 #: lib/explorer_web/templates/transaction/overview.html.eex:155
#: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:33 #: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:33
#: lib/explorer_web/views/wei_helpers.ex:71 #: lib/explorer_web/views/wei_helpers.ex:71
msgid "Ether" msgid "Ether"
msgstr "POA" msgstr "POA"
#: lib/explorer_web/views/block_view.ex:22 #: lib/explorer_web/views/block_view.ex:18
#: lib/explorer_web/views/wei_helpers.ex:70 #: lib/explorer_web/views/wei_helpers.ex:70
msgid "Gwei" msgid "Gwei"
msgstr "" msgstr ""
@ -432,8 +431,8 @@ msgid "Price"
msgstr "" msgstr ""
#: lib/explorer_web/templates/address/overview.html.eex:32 #: lib/explorer_web/templates/address/overview.html.eex:32
#: lib/explorer_web/templates/transaction/overview.html.eex:65 #: lib/explorer_web/templates/transaction/overview.html.eex:69
#: lib/explorer_web/templates/transaction/overview.html.eex:165 #: lib/explorer_web/templates/transaction/overview.html.eex:163
#: lib/explorer_web/views/currency_helpers.ex:32 #: lib/explorer_web/views/currency_helpers.ex:32
msgid "USD" msgid "USD"
msgstr "" msgstr ""
@ -487,8 +486,8 @@ msgstr ""
msgid "View All" msgid "View All"
msgstr "" msgstr ""
#: lib/explorer_web/templates/transaction/overview.html.eex:157 #: lib/explorer_web/templates/transaction/overview.html.eex:155
#: lib/explorer_web/templates/transaction/overview.html.eex:165 #: lib/explorer_web/templates/transaction/overview.html.eex:163
msgid "TX Fee" msgid "TX Fee"
msgstr "" msgstr ""
@ -506,16 +505,16 @@ msgid "Contract bytecode"
msgstr "" msgstr ""
#: lib/explorer_web/templates/address_transaction/index.html.eex:137 #: lib/explorer_web/templates/address_transaction/index.html.eex:137
#: lib/explorer_web/templates/block_transaction/index.html.eex:194 #: lib/explorer_web/templates/block_transaction/index.html.eex:192
msgid "There are no Transactions" msgid "There are no Transactions"
msgstr "" msgstr ""
#: lib/explorer_web/templates/address_internal_transaction/index.html.eex:131 #: lib/explorer_web/templates/address_internal_transaction/index.html.eex:131
#: lib/explorer_web/templates/address_transaction/index.html.eex:143 #: lib/explorer_web/templates/address_transaction/index.html.eex:143
#: lib/explorer_web/templates/block/index.html.eex:60 #: lib/explorer_web/templates/block/index.html.eex:60
#: lib/explorer_web/templates/block_transaction/index.html.eex:200 #: lib/explorer_web/templates/block_transaction/index.html.eex:198
#: lib/explorer_web/templates/pending_transaction/index.html.eex:69 #: lib/explorer_web/templates/pending_transaction/index.html.eex:69
#: lib/explorer_web/templates/transaction/index.html.eex:90 #: lib/explorer_web/templates/transaction/index.html.eex:88
#: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:71 #: lib/explorer_web/templates/transaction_internal_transaction/index.html.eex:71
msgid "Older" msgid "Older"
msgstr "" msgstr ""

Loading…
Cancel
Save