Added favicon
modified tx details page to show shielded details at the top of the page itself
This commit is contained in:
parent
14aec95a40
commit
2a56cf0623
Binary file not shown.
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 15 KiB |
|
@ -6,7 +6,7 @@ defmodule ZcashExplorer.Metrics.MempoolInfoWarmer do
|
|||
Returns the interval for this warmer.
|
||||
"""
|
||||
def interval,
|
||||
do: :timer.seconds(5)
|
||||
do: :timer.seconds(3)
|
||||
|
||||
@doc """
|
||||
Executes this cache warmer.
|
||||
|
|
|
@ -45,13 +45,6 @@ defmodule ZcashExplorerWeb.RecentBlocksLive do
|
|||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
<nav class="bg-white-500 px-4 py-3 flex items-center justify-between border-t border-gray-200 px-4">
|
||||
<div class="flex-1 flex justify-between sm:justify-end">
|
||||
<a href="/blocks" class="inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">
|
||||
View More
|
||||
</a>
|
||||
</div>
|
||||
</nav>
|
||||
"""
|
||||
end
|
||||
|
||||
|
|
|
@ -84,14 +84,49 @@
|
|||
</a>
|
||||
</dd>
|
||||
</div>
|
||||
|
||||
<div class="sm:col-span-1">
|
||||
<dt class="text-sm font-medium text-gray-500">
|
||||
Inputs / Outputs
|
||||
Public Inputs / Outputs
|
||||
</dt>
|
||||
<dd class="mt-1 text-sm text-gray-900">
|
||||
<%= vin_vout_count @tx %>
|
||||
<%= vin_vout_count @tx %>
|
||||
</dd>
|
||||
</div>
|
||||
|
||||
<div class="sm:col-span-1">
|
||||
<dt class="text-sm font-medium text-gray-500">
|
||||
Shielded Inputs / Outputs
|
||||
</dt>
|
||||
<dd class="mt-1 text-sm text-gray-900 break-words">
|
||||
<%= length(@tx.vShieldedSpend) %> / <%= length(@tx.vShieldedOutput) %>
|
||||
</dd>
|
||||
</div>
|
||||
|
||||
<div class="sm:col-span-1">
|
||||
<dt class="text-sm font-medium text-gray-500">
|
||||
JoinSplits ?
|
||||
</dt>
|
||||
<dd class="mt-1 text-sm text-gray-900 break-words">
|
||||
<%= if ZcashExplorerWeb.BlockView.contains_sprout(@tx) do %>
|
||||
Yes -
|
||||
<%= ZcashExplorerWeb.BlockView.get_joinsplit_count(@tx) %>
|
||||
<% else %>
|
||||
No
|
||||
<% end %>
|
||||
</dd>
|
||||
</div>
|
||||
|
||||
<div class="sm:col-span-1">
|
||||
<dt class="text-sm font-medium text-gray-500">
|
||||
<%= get_shielded_pool_label(@tx) %>
|
||||
</dt>
|
||||
<dd class="mt-1 text-sm text-gray-900 break-words">
|
||||
<%= format_zec(get_shielded_pool_value(@tx)) %>
|
||||
</dd>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="sm:col-span-1">
|
||||
<dt class="text-sm font-medium text-gray-500">
|
||||
Overwintered?
|
||||
|
@ -152,10 +187,6 @@
|
|||
<%= mixed_tx_fees(@tx) %>
|
||||
<% end %>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</dd>
|
||||
</div>
|
||||
</dl>
|
||||
|
@ -265,61 +296,6 @@ Outputs (<%= vout_count(@tx.vout) %>)
|
|||
|
||||
</div>
|
||||
|
||||
<h4 class="font-medium text-gray-900">
|
||||
Shielded transfers
|
||||
</h4>
|
||||
|
||||
|
||||
<div class="rounded-lg bg-white overflow-hidden shadow">
|
||||
<div class="bg-white p-6">
|
||||
<div class="sm:flex sm:items-center sm:justify-between">
|
||||
<div class="sm:flex sm:space-x-5">
|
||||
|
||||
|
||||
<dl class="grid grid-cols-3 gap-x-4 gap-y-8 sm:grid-cols-6">
|
||||
|
||||
<div class="col-span-2 md:border-r lg:border-r">
|
||||
<dt class="text-sm font-medium text-gray-500">
|
||||
<%= get_shielded_pool_label(@tx) %>
|
||||
</dt>
|
||||
<dd class="mt-1 text-sm text-gray-900 break-words">
|
||||
<%= format_zec(get_shielded_pool_value(@tx)) %>
|
||||
</dd>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="col-span-2 md:col-span-1 md:border-r lg:border-r">
|
||||
<dt class="text-sm font-medium text-gray-500">
|
||||
JoinSplits ?
|
||||
</dt>
|
||||
<dd class="mt-1 text-sm text-gray-900 break-words">
|
||||
<%= if ZcashExplorerWeb.BlockView.contains_sprout(@tx) do %>
|
||||
Yes -
|
||||
<%= ZcashExplorerWeb.BlockView.get_joinsplit_count(@tx) %>
|
||||
<% else %>
|
||||
No
|
||||
<% end %>
|
||||
</dd>
|
||||
</div>
|
||||
|
||||
<div class="sm:col-span-1 md:border-r lg:border-r">
|
||||
<dt class="text-sm font-medium text-gray-500">
|
||||
Shielded inputs
|
||||
</dt>
|
||||
<dd class="mt-1 text-sm text-gray-900 break-words">
|
||||
<%= length(@tx.vShieldedSpend) %>
|
||||
</dd>
|
||||
</div>
|
||||
|
||||
<div class="sm:col-span-1">
|
||||
<dt class="text-sm font-medium text-gray-500">
|
||||
Shielded outputs
|
||||
</dt>
|
||||
<dd class="mt-1 text-sm text-gray-900 break-words">
|
||||
<%= length(@tx.vShieldedOutput) %>
|
||||
</dd>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
|
Loading…
Reference in New Issue