add two columns of smart contract info

pull/2368/head
Ayrat Badykov 5 years ago
parent 98b68291a0
commit 14826824ad
No known key found for this signature in database
GPG Key ID: B44668E265E9396F
  1. 24
      apps/block_scout_web/lib/block_scout_web/templates/address_contract/index.html.eex

@ -23,12 +23,18 @@
<%= if BlockScoutWeb.AddressView.smart_contract_verified?(@address) do %>
<div class="mb-4">
<dl class="row">
<dt class="col-sm-4 col-md-2 text-muted"><%= gettext "Contract name:" %></dt>
<dd class="col-sm-8 col-md-10"><%= @address.smart_contract.name %></dd>
<dt class="col text-muted"><%= gettext "Contract name:" %></dt>
<dd class="col-ml-5"><%= @address.smart_contract.name %></dd>
<dt class="col text-muted"><%= gettext "Optimization enabled" %></dt>
<dd class="col-ml-5"><%= format_optimization_text(@address.smart_contract.optimization) %></dd>
</dl>
<dl class="row">
<dt class="col-sm-4 col-md-2 text-muted"><%= gettext "Compiler version" %></dt>
<dd class="col-sm-8 col-md-10"><%= @address.smart_contract.compiler_version %></dd>
<dt class="col text-muted"><%= gettext "Compiler version" %></dt>
<dd class="col-ml-5"><%= @address.smart_contract.compiler_version %></dd>
<%= if @address.smart_contract.optimization && @address.smart_contract.optimization_runs do %>
<dt class="col text-muted"><%= gettext "Optimization runs" %></dt>
<dd class="col-ml-5"><%= @address.smart_contract.optimization_runs %></dd>
<% end %>
</dl>
<%= if @address.smart_contract.evm_version do %>
<dl class="row">
@ -36,16 +42,6 @@
<dd class="col-sm-8 col-md-10"><%= @address.smart_contract.evm_version %></dd>
</dl>
<% end %>
<dl class="row">
<dt class="col-sm-4 col-md-2 text-muted"><%= gettext "Optimization enabled" %></dt>
<dd class="col-sm-8 col-md-10"><%= format_optimization_text(@address.smart_contract.optimization) %></dd>
</dl>
<%= if @address.smart_contract.optimization && @address.smart_contract.optimization_runs do %>
<dl class="row">
<dt class="col-sm-4 col-md-2 text-muted"><%= gettext "Optimization runs" %></dt>
<dd class="col-sm-8 col-md-10"><%= @address.smart_contract.optimization_runs %></dd>
</dl>
<% end %>
<%= if @address.smart_contract.constructor_arguments do %>
<dl class="row">
<dt class="col-sm-4 col-md-2 text-muted"><%= gettext "Constructor arguments" %></dt>

Loading…
Cancel
Save