|
|
|
@ -40,68 +40,67 @@ |
|
|
|
|
<div data-selector="channel-disconnected-message" style="display:none;"> |
|
|
|
|
<%= gettext "channel disconnected" %> |
|
|
|
|
</div> |
|
|
|
|
<%= if Enum.count(@transactions) > 0 do %> |
|
|
|
|
<div class="dropdown float-right u-push-sm"> |
|
|
|
|
<button data-test="filter_dropdown" class="button button--secondary button--xsmall dropdown-toggle" type="button" |
|
|
|
|
id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> |
|
|
|
|
Filter: <%= format_current_filter(@filter) %> |
|
|
|
|
</button> |
|
|
|
|
<div class="dropdown-menu dropdown-menu-right filter" aria-labelledby="dropdownMenu2"> |
|
|
|
|
<%= link( |
|
|
|
|
gettext("All"), |
|
|
|
|
to: address_transaction_path(@conn, :index, @conn.assigns.locale, @conn.params["address_id"]), |
|
|
|
|
class: "address__link address__link--active dropdown-item", |
|
|
|
|
"data-test": "filter_option" |
|
|
|
|
) %> |
|
|
|
|
<%= link( |
|
|
|
|
gettext("To"), |
|
|
|
|
to: address_transaction_path( |
|
|
|
|
@conn, |
|
|
|
|
:index, |
|
|
|
|
@conn.assigns.locale, |
|
|
|
|
@conn.params["address_id"], |
|
|
|
|
filter: "to" |
|
|
|
|
), |
|
|
|
|
class: "address__link address__link--active dropdown-item", |
|
|
|
|
"data-test": "filter_option" |
|
|
|
|
) %> |
|
|
|
|
<%= link( |
|
|
|
|
gettext("From"), |
|
|
|
|
to: address_transaction_path( |
|
|
|
|
@conn, |
|
|
|
|
:index, |
|
|
|
|
@conn.assigns.locale, |
|
|
|
|
@conn.params["address_id"], |
|
|
|
|
filter: "from" |
|
|
|
|
), |
|
|
|
|
class: "address__link address__link--active dropdown-item", |
|
|
|
|
"data-test": "filter_option" |
|
|
|
|
) %> |
|
|
|
|
</div> |
|
|
|
|
<div class="dropdown float-right u-push-sm"> |
|
|
|
|
<button data-test="filter_dropdown" class="button button--secondary button--xsmall dropdown-toggle" type="button" |
|
|
|
|
id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> |
|
|
|
|
Filter: <%= format_current_filter(@filter) %> |
|
|
|
|
</button> |
|
|
|
|
<div class="dropdown-menu dropdown-menu-right filter" aria-labelledby="dropdownMenu2"> |
|
|
|
|
<%= link( |
|
|
|
|
gettext("All"), |
|
|
|
|
to: address_transaction_path(@conn, :index, @conn.assigns.locale, @conn.params["address_id"]), |
|
|
|
|
class: "address__link address__link--active dropdown-item", |
|
|
|
|
"data-test": "filter_option" |
|
|
|
|
) %> |
|
|
|
|
<%= link( |
|
|
|
|
gettext("To"), |
|
|
|
|
to: address_transaction_path( |
|
|
|
|
@conn, |
|
|
|
|
:index, |
|
|
|
|
@conn.assigns.locale, |
|
|
|
|
@conn.params["address_id"], |
|
|
|
|
filter: "to" |
|
|
|
|
), |
|
|
|
|
class: "address__link address__link--active dropdown-item", |
|
|
|
|
"data-test": "filter_option" |
|
|
|
|
) %> |
|
|
|
|
<%= link( |
|
|
|
|
gettext("From"), |
|
|
|
|
to: address_transaction_path( |
|
|
|
|
@conn, |
|
|
|
|
:index, |
|
|
|
|
@conn.assigns.locale, |
|
|
|
|
@conn.params["address_id"], |
|
|
|
|
filter: "from" |
|
|
|
|
), |
|
|
|
|
class: "address__link address__link--active dropdown-item", |
|
|
|
|
"data-test": "filter_option" |
|
|
|
|
) %> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<table class="table table-responsive-sm table-font"> |
|
|
|
|
<thead> |
|
|
|
|
<tr> |
|
|
|
|
<th class="transactions__column-header transactions__column-header--status"> |
|
|
|
|
<span class="transactions__column-title transactions__column-title--status"><%= gettext "Status" %></span> |
|
|
|
|
</th> |
|
|
|
|
<th><%= gettext "Hash" %></th> |
|
|
|
|
<th><%= gettext "Block" %></th> |
|
|
|
|
<th><%= gettext "Age" %></th> |
|
|
|
|
<th><%= gettext "From" %></th> |
|
|
|
|
<th></th> |
|
|
|
|
<th><%= gettext "To" %></th> |
|
|
|
|
<th><%= gettext "Value" %> (<%= gettext "Ether" %>)</th> |
|
|
|
|
<th><%= gettext "Fee" %></th> |
|
|
|
|
</tr> |
|
|
|
|
</thead> |
|
|
|
|
<tbody data-selector='transactions-list'> |
|
|
|
|
<%= for transaction <- @transactions do %> |
|
|
|
|
<%= render "_transaction.html", locale: @locale, transaction: transaction %> |
|
|
|
|
<% end %> |
|
|
|
|
</tbody> |
|
|
|
|
</table> |
|
|
|
|
</div> |
|
|
|
|
<%= if Enum.count(@transactions) > 0 do %> |
|
|
|
|
<table class="table table-responsive-sm table-font"> |
|
|
|
|
<thead> |
|
|
|
|
<tr> |
|
|
|
|
<th class="transactions__column-header transactions__column-header--status"> |
|
|
|
|
<span class="transactions__column-title transactions__column-title--status"><%= gettext "Status" %></span> |
|
|
|
|
</th> |
|
|
|
|
<th><%= gettext "Hash" %></th> |
|
|
|
|
<th><%= gettext "Block" %></th> |
|
|
|
|
<th><%= gettext "Age" %></th> |
|
|
|
|
<th><%= gettext "From" %></th> |
|
|
|
|
<th></th> |
|
|
|
|
<th><%= gettext "To" %></th> |
|
|
|
|
<th><%= gettext "Value" %> (<%= gettext "Ether" %>)</th> |
|
|
|
|
<th><%= gettext "Fee" %></th> |
|
|
|
|
</tr> |
|
|
|
|
</thead> |
|
|
|
|
<tbody data-selector='transactions-list'> |
|
|
|
|
<%= for transaction <- @transactions do %> |
|
|
|
|
<%= render "_transaction.html", locale: @locale, transaction: transaction %> |
|
|
|
|
<% end %> |
|
|
|
|
</tbody> |
|
|
|
|
</table> |
|
|
|
|
<% else %> |
|
|
|
|
<p data-selector="empty-transactions-list"><%= gettext "There are no Transactions" %></p> |
|
|
|
|
<% end %> |
|
|
|
|