ui: Combine viewkeys sections.

2024-05-20_merge
tecnovert 2 years ago
parent 515e6655e8
commit c0c2c8b9bb
No known key found for this signature in database
GPG Key ID: 8ED6D8750C4E3F93
  1. 56
      basicswap/templates/bid_xmr.html

@ -223,7 +223,7 @@
<form method="post"> <form method="post">
{% if data.show_txns %} {% if data.show_txns %}
{% if data.xmr_b_shared_address %} {% if data.xmr_b_shared_address or data.xmr_b_shared_viewkey or data.xmr_b_half_privatekey %}
<section class="bg-white p-6"> <section class="bg-white p-6">
<div class="flex flex-wrap items-center"> <div class="flex flex-wrap items-center">
@ -242,66 +242,24 @@
<th scope="col">Output</th> <th scope="col">Output</th>
</tr> </tr>
</thead> </thead>
{% if data.xmr_b_shared_address %}
<tr class="bg-white border-t hover:bg-gray-50"> <tr class="bg-white border-t hover:bg-gray-50">
<td class="py-4 px-6 bold">Shared Address:</td> <td class="py-4 px-6 bold">Shared Address:</td>
<td class="py-4 monospace">{{ data.xmr_b_shared_address }}</td> <td class="py-4 monospace">{{ data.xmr_b_shared_address }}</td>
</tr> </tr>
</table> {% endif %}
</div> {% if data.xmr_b_shared_viewkey %}
</div>
{% endif %}
{% if data.xmr_b_shared_viewkey %}
<section class="bg-white p-6">
<div class="flex flex-wrap items-center">
<div class="w-full">
<h4 class="font-semibold text-black text-2xl">View keys/Shared Address:</h4>
</div>
</div>
</section>
<div class="container px-0 mx-auto mt-5">
<div class="overflow-x-auto relative border sm:rounded-lg">
<table class="w-full text-sm text-left text-gray-500 outline-none border-gray-300">
<thead class="text-xs text-gray-700 border-b uppercase bg-gray-50 outline-none border-gray-300">
<tr>
<th scope="col" class="py-3 px-6 w-96">Type</th>
<th scope="col">Output</th>
</tr>
</thead>
<tr class="bg-white border-t hover:bg-gray-50"> <tr class="bg-white border-t hover:bg-gray-50">
<td class="py-4 px-6 bold">Shared View Key:</td> <td class="py-4 px-6 bold">Shared View Key:</td>
<td class="py-4 monospace">{{ data.xmr_b_shared_viewkey }}</td> <td class="py-4 monospace">{{ data.xmr_b_shared_viewkey }}</td>
</tr> </tr>
</table> {% endif %}
</div> {% if data.xmr_b_half_privatekey %}
</div>
{% endif %}
{% if data.xmr_b_half_privatekey %}
<section class="bg-white p-6">
<div class="flex flex-wrap items-center">
<div class="w-full">
<h4 class="font-semibold text-black text-2xl">View keys/Shared Address:</h4>
</div>
</div>
</section>
<div class="container px-0 mx-auto mt-5">
<div class="overflow-x-auto relative border sm:rounded-lg">
<table class="w-full text-sm text-left text-gray-500 outline-none border-gray-300">
<thead class="text-xs text-gray-700 border-b uppercase bg-gray-50 outline-none border-gray-300">
<tr>
<th scope="col" class="py-3 px-6 w-96">Type</th>
<th scope="col">Output</th>
</tr>
</thead>
<tr class="bg-white border-t hover:bg-gray-50"> <tr class="bg-white border-t hover:bg-gray-50">
<td class="py-4 px-6 bold">Key Half:</td> <td class="py-4 px-6 bold">Key Half:</td>
<td class="py-4 monospace">{{ data.xmr_b_half_privatekey }}</td> <td class="py-4 monospace">{{ data.xmr_b_half_privatekey }}</td>
</tr> </tr>
{% endif %}
</table> </table>
</div> </div>
</div> </div>

Loading…
Cancel
Save