Hide table display if no transactions exist

pull/320/head
Stamates 7 years ago
parent 027ad14df0
commit bb84d7703f
  1. 1
      apps/explorer_web/lib/explorer_web/templates/address_internal_transaction/index.html.eex
  2. 4
      apps/explorer_web/lib/explorer_web/templates/address_transaction/index.html.eex

@ -37,7 +37,6 @@
</ul> </ul>
</div> </div>
<div class="card-body"> <div class="card-body">
<%= if Enum.count(@internal_transactions) > 0 do %> <%= if Enum.count(@internal_transactions) > 0 do %>
<div class="dropdown u-float-right u-push-sm"> <div class="dropdown u-float-right u-push-sm">
<button data-test="filter_dropdown" class="button button--secondary button--xsmall dropdown-toggle" type="button" <button data-test="filter_dropdown" class="button button--secondary button--xsmall dropdown-toggle" type="button"

@ -37,6 +37,7 @@
</ul> </ul>
</div> </div>
<div class="card-body"> <div class="card-body">
<%= if Enum.count(@transactions) > 0 do %>
<div class="dropdown u-float-right u-push-sm"> <div class="dropdown u-float-right u-push-sm">
<button data-test="filter_dropdown" class="button button--secondary button--xsmall dropdown-toggle" type="button" <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"> id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
@ -132,6 +133,9 @@
<% end %> <% end %>
</tbody> </tbody>
</table> </table>
<% else %>
<p><%= gettext "There are no Transactions" %></p>
<% end %>
</div> </div>
</div> </div>
<%= if @next_page_params do %> <%= if @next_page_params do %>

Loading…
Cancel
Save