|
|
|
@ -70,10 +70,12 @@ |
|
|
|
|
<!-- --> |
|
|
|
|
<% show_maintenance_alert = Application.get_env(:block_scout_web, BlockScoutWeb.Chain)[:show_maintenance_alert] %> |
|
|
|
|
<%= if show_maintenance_alert do %> |
|
|
|
|
<div class="alert alert-warning text-center mb-0 p-3" data-selector="indexed-status"> |
|
|
|
|
<div class="alert alert-warning text-center mb-0 p-3"> |
|
|
|
|
<%= raw(System.get_env("MAINTENANCE_ALERT_MESSAGE")) %> |
|
|
|
|
</div> |
|
|
|
|
<% end %> |
|
|
|
|
<% hide_indexing_progress_alert = Application.get_env(:indexer, :hide_indexing_progress_alert) %> |
|
|
|
|
<%= unless hide_indexing_progress_alert do %> |
|
|
|
|
<% indexed_ratio_blocks = Chain.indexed_ratio_blocks() %> |
|
|
|
|
<% indexed_ratio = |
|
|
|
|
case Chain.finished_indexing_from_ratio?(indexed_ratio_blocks) do |
|
|
|
@ -87,6 +89,7 @@ |
|
|
|
|
<%= gettext("- We're indexing this chain right now. Some of the counts may be inaccurate.") %> |
|
|
|
|
</div> |
|
|
|
|
<% end %> |
|
|
|
|
<% end %> |
|
|
|
|
<%= render BlockScoutWeb.LayoutView, "_topnav.html", current_user: Conn.get_session(@conn, :current_user), conn: @conn %> |
|
|
|
|
|
|
|
|
|
<main class="js-ad-dependant-pt pt-5"> |
|
|
|
|