Add a content placeholder element to the address transactions lists

pull/376/head
Ryan Arthur 7 years ago committed by Stamates
parent 6b5ebc75b7
commit 6f90fbe8aa
  1. 7
      apps/explorer_web/assets/css/components/_tile.scss
  2. 4
      apps/explorer_web/lib/explorer_web/templates/address_internal_transaction/index.html.eex
  3. 4
      apps/explorer_web/lib/explorer_web/templates/address_transaction/index.html.eex

@ -68,3 +68,10 @@
line-height: 1.25rem; line-height: 1.25rem;
text-align: center; text-align: center;
} }
.tile-muted {
border-left: 1px solid $border-color;
background-color: $gray-100;
color: $text-muted;
box-shadow: none;
}

@ -82,7 +82,9 @@
<%= render "_transaction.html", locale: @locale, internal_transaction: internal_transaction %> <%= render "_transaction.html", locale: @locale, internal_transaction: internal_transaction %>
<% end %> <% end %>
<% else %> <% else %>
<p><%= gettext "There are no Internal Transactions" %></p> <div class="tile tile-muted text-center">
<span><%= gettext "There are no Internal Transactions" %></span>
</div>
<% end %> <% end %>
</div> </div>
</div> </div>

@ -129,7 +129,9 @@
<%= render "_transaction.html", locale: @locale, transaction: transaction %> <%= render "_transaction.html", locale: @locale, transaction: transaction %>
<% end %> <% end %>
<% else %> <% else %>
<p data-selector="empty-transactions-list"><%= gettext "There are no Transactions" %></p> <div class="tile tile-muted text-center">
<span data-selector="empty-transactions-list"><%= gettext "There are no Internal Transactions" %></span>
</div>
<% end %> <% end %>
</div> </div>
</div> </div>

Loading…
Cancel
Save