Style hide/show pending txn link

pull/949/head
Ryan Arthur 6 years ago committed by Stamates
parent c097f7e485
commit af49a63a7b
  1. 13
      apps/block_scout_web/lib/block_scout_web/templates/address_transaction/index.html.eex

@ -51,12 +51,13 @@
</div> </div>
</div> </div>
<h2 class="card-title"><%= gettext "Transactions" %></h2> <h2 class="card-title"><%= gettext "Transactions" %></h2>
<span data-selector="pending-transactions-toggle"> <div data-selector="pending-transactions-toggle">
<span data-selector="pending-transactions-count"><%= length(@pending_transactions) %></span> <%= link to: "#pending-transactions", class: "d-inline-block mb-3", "data-toggle": "collapse" do %>
<%= gettext("Pending Transactions") %> <span data-selector="pending-transactions-open">
<%= link to: "#pending-transactions", "data-toggle": "collapse" do %> <%= gettext("Show") %></span>
<span data-selector="pending-transactions-open"><%= gettext("Show") %></span>
<span data-selector="pending-transactions-close" class="d-none"><%= gettext("Hide") %></span> <span data-selector="pending-transactions-close" class="d-none"><%= gettext("Hide") %></span>
<span data-selector="pending-transactions-count"><%= length(@pending_transactions) %></span>
<%= gettext("Pending Transactions") %>
<% end %> <% end %>
<div class="mb-3 collapse" id="pending-transactions" data-selector="pending-transactions-list"> <div class="mb-3 collapse" id="pending-transactions" data-selector="pending-transactions-list">
<%= for pending_transaction <- @pending_transactions do %> <%= for pending_transaction <- @pending_transactions do %>
@ -64,7 +65,7 @@
<% end %> <% end %>
<hr /> <hr />
</div> </div>
</span> </div>
<%= if Enum.count(@transactions) > 0 do %> <%= if Enum.count(@transactions) > 0 do %>
<span data-selector="transactions-list"> <span data-selector="transactions-list">
<%= for transaction <- @transactions do %> <%= for transaction <- @transactions do %>

Loading…
Cancel
Save