errors page issues

pull/1982/head
maxgrapps 6 years ago
parent 7d589089f1
commit e3b03e1648
  1. 21
      apps/block_scout_web/lib/block_scout_web/templates/block_transaction/404.html.eex
  2. 52
      apps/block_scout_web/lib/block_scout_web/templates/transaction/not_found.html.eex

@ -1,26 +1,7 @@
<%#
<section class="container">
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-body">
<h1 class="card-title" data-test="detail_type">
<%= gettext("Block Details") %>
</h1>
<div class="tile tile-muted text-center" data-selector="block-not-found-message">
<%= block_not_found_message(@block_above_tip) %>
</div>
</div>
</div>
</div>
</div>
</section>
%>
<section class="container"> <section class="container">
<div class="block-not-found"> <div class="block-not-found">
<div class="block-not-found-img"> <div class="block-not-found-img">
<img alt="Block Not Found" src="images/errors-img/eth-block-not-found.png" srcset="images/eth-block-not-found@2x.png 2x"> <img alt="Block Not Found" src="/images/errors-img/eth-block-not-found.png" srcset="/images/eth-block-not-found@2x.png 2x">
</div> </div>
<div class="block-not-found-content"> <div class="block-not-found-content">
<h1 class="card-title error-title">Lorem Ipsum Dolor</h1> <h1 class="card-title error-title">Lorem Ipsum Dolor</h1>

@ -1,57 +1,7 @@
<%#
<section class="container">
<section data-page="transaction-details" data-page-transaction-hash="<%= @transaction_hash %>">
<div class="row">
<div class="col-12">
<div class="card">
<div class="card-body">
<div class="icon-links float-right">
<span data-clipboard-text="<%= @transaction_hash %>">
<span
aria-label='<%= gettext("Copy Transaction Hash") %>'
class="btn-copy-ico"
data-placement="top"
data-toggle="tooltip"
title='<%= gettext("Copy Txn Hash") %>'
>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32.5 32.5" width="32" height="32">
<path fill-rule="evenodd" d="M23.5 20.5a1 1 0 0 1-1-1v-9h-9a1 1 0 0 1 0-2h10a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1zm-3-7v10a1 1 0 0 1-1 1h-10a1 1 0 0 1-1-1v-10a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1zm-2 1h-8v8h8v-8z"/>
</svg>
</span>
</span>
</div>
<h1 class="card-title"><%= gettext "Transaction Details" %> </h1>
<div class="tile tile-muted text-center">
<div class="loading-spinner mx-auto">
<span class="loading-spinner-block-1"></span>
<span class="loading-spinner-block-2"></span>
</div>
<br>
<span><%= gettext("The transaction %{bold_hash} was not processed yet", bold_hash: "<span class=\"font-weight-bold\">#{@transaction_hash}</span>") |> raw() %> <span>
</div>
<hr>
<div class="text-center">
<h2><%= gettext "Once we have the transaction's data this page will refresh automatically" %></h2>
<h3><%= gettext "The possible reasons for this transaction not being processed include the following:" %></h3>
<ul class="d-inline-block text-left">
<li><%= gettext "The transaction was made a few seconds ago" %></li>
<li><%= gettext "The transaction may be in the pool of a node that didn't broadcast it yet" %></li>
<li><%= gettext "Some transactions may take a while longer to be indexed depending on the load on the network" %></li>
<li><%= gettext "The transaction still does not exist" %></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</section>
</section>
%>
<section class="container"> <section class="container">
<div class="tx-nf"> <div class="tx-nf">
<div class="tx-nf-illustr"> <div class="tx-nf-illustr">
<img alt="Block Not Found" src="images/errors-img/eth-tx-not-found.png" srcset="images/eth-tx-not-found@2x.png 2x"> <img alt="Block Not Found" src="/images/errors-img/eth-tx-not-found.png" srcset="/images/errors-img/eth-tx-not-found@2x.png 2x">
</div> </div>
<div class="tx-nf-content"> <div class="tx-nf-content">
<h1 class="card-title error-title">Sorry, We are unable to locate this transaction Hash</h1> <h1 class="card-title error-title">Sorry, We are unable to locate this transaction Hash</h1>

Loading…
Cancel
Save