Merge pull request #1020 from poanetwork/943-read-contract-query-styling

Read contract query styling
pull/1019/head
Andrew Cravenho 6 years ago committed by GitHub
commit df80d0b257
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 24
      apps/block_scout_web/lib/block_scout_web/templates/smart_contract/_function_response.html.eex

@ -1,20 +1,10 @@
<div class="tile tile-muted tile-function-response monospace">
<pre class="pre-wrap">
<code>
[ <%= @function_name %> method Response ]
<pre>
[ <strong><%= @function_name %></strong> method Response ]
<p class="text-dark">
[
<%= for item <- @outputs do %>
<span class="text-dark function-response-item">
<%= if named_argument?(item) do %>
<%= item["name"] %>
<% end %>
(<%= item["type"] %>) : <%= values(item["value"]) %>
</span>
<% end %>
]
</p>
</code>
</pre>
[<%= for item <- @outputs do %>
<span class="function-response-item"><%= if named_argument?(item) do %><%= item["name"] %>
<% end %>
<span class="text-muted">(<%= item["type"] %>)</span> : <%= values(item["value"]) %></span><% end %>]
</pre>
</div>

Loading…
Cancel
Save