Merge pull request #852 from poanetwork/755-highlight-transaction-status

Highlight transaction status
pull/857/head
John Stamates 6 years ago committed by GitHub
commit 39a07f5263
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      apps/block_scout_web/assets/css/_typography.scss
  2. 12
      apps/block_scout_web/assets/css/components/_tile.scss
  3. 2
      apps/block_scout_web/lib/block_scout_web/templates/transaction/overview.html.eex

@ -94,3 +94,11 @@ label, textarea.form-control {
color: $teal; color: $teal;
} }
} }
[data-transaction-status="Success"] {
color: $success;
}
[data-transaction-status^="Error"] {
color: $danger;
}

@ -109,18 +109,18 @@
&-status { &-status {
&--error--reason { &--error--reason {
border-top: 1px solid lighten($danger, 10%); border-top: 2px solid lighten($danger, 10%);
border-right: 1px solid lighten($danger, 10%); border-right: 2px solid lighten($danger, 10%);
border-bottom: 1px solid lighten($danger, 10%); border-bottom: 2px solid lighten($danger, 10%);
.tile-status-label { .tile-status-label {
color: $danger; color: $danger;
} }
} }
&--awaiting-internal-transactions { &--awaiting-internal-transactions {
border-top: 1px solid lighten($warning, 10%); border-top: 2px solid lighten($warning, 10%);
border-right: 1px solid lighten($warning, 10%); border-right: 2px solid lighten($warning, 10%);
border-bottom: 1px solid lighten($warning, 10%); border-bottom: 2px solid lighten($warning, 10%);
.tile-status-label { .tile-status-label {
color: $warning; color: $warning;

@ -32,7 +32,7 @@
</span> </span>
<div class="d-flex flex-row justify-content-start text-muted"> <div class="d-flex flex-row justify-content-start text-muted">
<span class="mr-4 text-<%= BlockScoutWeb.TransactionView.type_suffix(@transaction) %>"><%= BlockScoutWeb.TransactionView.transaction_display_type(@transaction) %></span> <span class="mr-4 text-<%= BlockScoutWeb.TransactionView.type_suffix(@transaction) %>"><%= BlockScoutWeb.TransactionView.transaction_display_type(@transaction) %></span>
<span class="mr-4"><%= BlockScoutWeb.TransactionView.formatted_status(@transaction) %></span> <span class="mr-4" data-transaction-status="<%= BlockScoutWeb.TransactionView.formatted_status(@transaction) %>"><%= BlockScoutWeb.TransactionView.formatted_status(@transaction) %></span>
<span class="mr-4"> <span class="mr-4">
<%= if block do %> <%= if block do %>
<span data-from-now="<%= @transaction.block.timestamp %>"></span> <span data-from-now="<%= @transaction.block.timestamp %>"></span>

Loading…
Cancel
Save