pull/2818/head
Ayrat Badykov 5 years ago
parent 6824dafbf7
commit dfb7fa6f20
No known key found for this signature in database
GPG Key ID: B44668E265E9396F
  1. 12
      apps/block_scout_web/lib/block_scout_web/templates/common_components/_table-loader.html.eex
  2. 4
      apps/block_scout_web/lib/block_scout_web/views/common_components_view.ex

@ -8,9 +8,11 @@
<td class="stakes-td">
<span class="table-content-loader"></span>
</td>
<%= if balance_percentage_enabled?() do %>
<td class="stakes-td">
<span class="table-content-loader"></span>
</td>
<% end %>
<td class="stakes-td">
<span class="table-content-loader"></span>
</td>
@ -25,9 +27,11 @@
<td class="stakes-td">
<span class="table-content-loader"></span>
</td>
<%= if balance_percentage_enabled?() do %>
<td class="stakes-td">
<span class="table-content-loader"></span>
</td>
<% end %>
<td class="stakes-td">
<span class="table-content-loader"></span>
</td>
@ -42,9 +46,11 @@
<td class="stakes-td">
<span class="table-content-loader"></span>
</td>
<%= if balance_percentage_enabled?() do %>
<td class="stakes-td">
<span class="table-content-loader"></span>
</td>
<% end %>
<td class="stakes-td">
<span class="table-content-loader"></span>
</td>
@ -59,9 +65,11 @@
<td class="stakes-td">
<span class="table-content-loader"></span>
</td>
<%= if balance_percentage_enabled?() do %>
<td class="stakes-td">
<span class="table-content-loader"></span>
</td>
<% end %>
<td class="stakes-td">
<span class="table-content-loader"></span>
</td>
@ -76,10 +84,12 @@
<td class="stakes-td">
<span class="table-content-loader"></span>
</td>
<%= if balance_percentage_enabled?() do %>
<td class="stakes-td">
<span class="table-content-loader"></span>
</td>
<% end %>
<td class="stakes-td">
<span class="table-content-loader"></span>
</td>
</tr>
</tr>

@ -1,3 +1,7 @@
defmodule BlockScoutWeb.CommonComponentsView do
use BlockScoutWeb, :view
def balance_percentage_enabled? do
Application.get_env(:block_scout_web, :show_percentage)
end
end

Loading…
Cancel
Save