hilight variable type

pull/2374/head
Ayrat Badykov 5 years ago
parent ced45c965f
commit 89eebe02df
No known key found for this signature in database
GPG Key ID: B44668E265E9396F
  1. 2
      apps/block_scout_web/lib/block_scout_web/templates/address_contract/index.html.eex
  2. 2
      apps/block_scout_web/lib/block_scout_web/views/address_contract_view.ex

@ -52,7 +52,7 @@
<h3><%= gettext "Constructor Arguments" %></h3>
</div>
<div class="tile tile-muted mb-4">
<pre class="pre-wrap pre-scrollable"><code class="nohighlight"><%= format_constructor_arguments(@address.smart_contract) %></code>
<pre class="pre-wrap pre-scrollable"><code class="nohighlight"><%= raw(format_constructor_arguments(@address.smart_contract)) %></code>
</pre>
</div>
</section>

@ -39,7 +39,7 @@ defmodule BlockScoutWeb.AddressContractView do
val
end
{count + 1, "#{acc}Arg [#{count}] (#{type}) : #{formatted_val}\n"}
{count + 1, "#{acc}Arg [#{count}] (<span style=\"color:#e2725b;\">#{type}</span>) : #{formatted_val}\n"}
end)
result

Loading…
Cancel
Save