diff --git a/apps/explorer_web/assets/css/components/_tile.scss b/apps/explorer_web/assets/css/components/_tile.scss index bcab7b0c0f..7108acbf3b 100644 --- a/apps/explorer_web/assets/css/components/_tile.scss +++ b/apps/explorer_web/assets/css/components/_tile.scss @@ -13,6 +13,41 @@ margin-top: 1rem; } + &-type { + + &-transaction { + border-left: 4px solid $blue; + + .tile-label { + color: $blue; + } + } + + &-contract { + border-left: 4px solid $green; + + .tile-label { + color: $green; + } + } + + &-contract-creation { + border-left: 4px solid $pink; + + .tile-label { + color: $pink; + } + } + + &-token { + border-left: 4px solid $orange; + + .tile-label { + color: $orange; + } + } + } + .tile-title { font-size: 14px; font-weight: 600; diff --git a/apps/explorer_web/lib/explorer_web/templates/chain/_transactions.html.eex b/apps/explorer_web/lib/explorer_web/templates/chain/_transactions.html.eex index 51c6a84bf8..87fe26b612 100644 --- a/apps/explorer_web/lib/explorer_web/templates/chain/_transactions.html.eex +++ b/apps/explorer_web/lib/explorer_web/templates/chain/_transactions.html.eex @@ -3,10 +3,10 @@ <%= link(gettext("View All Transactions →"), to: transaction_path(@conn, :index, Gettext.get_locale), class: "button button--secondary button--xsmall float-right") %>

<%= gettext "Transactions" %>

<%= for transaction <- @chain.transactions do %> -
+
-
- Contract Creation +
+ Transaction
<%= link(transaction.hash , @@ -32,11 +32,15 @@ <% true -> %> <% end %>
- <%= ExplorerWeb.TransactionView.value(transaction, include_label: false) %> + <%= ExplorerWeb.TransactionView.value(transaction, include_label: false) %> POA
- Block #12345 + Block # + <%= link( + transaction.block, + to: block_path(@conn, :show, @conn.assigns.locale, transaction.block) + ) %>