mirror of
https://github.com/basicswap/basicswap.git
synced 2024-11-17 00:07:56 +00:00
ui: Invert get/send when offer sent.
This commit is contained in:
parent
640d22bdc5
commit
cb6e773848
2 changed files with 20 additions and 10 deletions
|
@ -107,13 +107,13 @@
|
||||||
<td>{{ data.state }}</td>
|
<td>{{ data.state }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<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">You Get</td>
|
<td class="py-4 px-6 bold">{% if data.sent %}You Send{% else %}You Send{% endif %}</td>
|
||||||
<td><span class="inline-flex align-middle items-center justify-center w-9 h-10 bg-white-50 rounded">
|
<td><span class="inline-flex align-middle items-center justify-center w-9 h-10 bg-white-50 rounded">
|
||||||
<img class="h-7" src="/static/images/coins/{{ data.coin_from }}.png" alt="{{ data.coin_from }}">
|
<img class="h-7" src="/static/images/coins/{{ data.coin_from }}.png" alt="{{ data.coin_from }}">
|
||||||
</span> {{ data.coin_from }} </td>
|
</span> {{ data.coin_from }} </td>
|
||||||
</tr>
|
</tr>
|
||||||
<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">You Send</td>
|
<td class="py-4 px-6 bold">{% if data.sent %}You Get{% else %}You Get{% endif %}</td>
|
||||||
<td><span class="inline-flex align-middle items-center justify-center w-9 h-10 bg-white-50 rounded">
|
<td><span class="inline-flex align-middle items-center justify-center w-9 h-10 bg-white-50 rounded">
|
||||||
<img class="h-7" src="/static/images/coins/{{ data.coin_to }}.png" alt="{{ data.coin_to }}">
|
<img class="h-7" src="/static/images/coins/{{ data.coin_to }}.png" alt="{{ data.coin_to }}">
|
||||||
</span> {{ data.coin_to }} </td>
|
</span> {{ data.coin_to }} </td>
|
||||||
|
@ -270,7 +270,7 @@
|
||||||
</thead>
|
</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 ">Amount you will get <span class="bold" id="bid_amt_from">{{ data.amt_from }}</span> {{ data.tla_from }} {% if data.xmr_type == true %} (excluding {{ data.amt_from_lock_spend_tx_fee }} {{ data.tla_from }} in tx fees). {% else %} (excluding a tx fee). {% endif %}</td>
|
<td class="py-4 px-6 ">Amount you will get <span class="bold" id="bid_amt_from">{{ data.amt_from }}</span> {{ data.tla_from }} {% if data.xmr_type == true %} (excluding {{ data.amt_from_lock_spend_tx_fee }} {{ data.tla_from }} in tx fees). {% else %} (excluding a tx fee). {% endif %}</td>
|
||||||
<td class="">Anount you will send <span class="bold" id="bid_amt_to">{{ data.amt_to }}</span> {{ data.tla_to }}</td>
|
<td class="">Amount you will send <span class="bold" id="bid_amt_to">{{ data.amt_to }}</span> {{ data.tla_to }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<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 bold">Send From Address</td>
|
<td class="py-4 px-6 bold bold">Send From Address</td>
|
||||||
|
|
|
@ -367,9 +367,19 @@
|
||||||
<!--Todo: Add link back -->
|
<!--Todo: Add link back -->
|
||||||
<td class="py-4 px-6">{{ o[7] }} {% if o[12]==2 %}(Revoked){% elif o[11]==true %}(Not Active){% else %}(Active){% endif %}</td>
|
<td class="py-4 px-6">{{ o[7] }} {% if o[12]==2 %}(Revoked){% elif o[11]==true %}(Not Active){% else %}(Active){% endif %}</td>
|
||||||
<td class="py-4 px-6 text-xs monospace"><a href="/identity/{{ o[8] }}{% if o[9]==true %}{% endif %}">{{ o[8] }}</a></td>
|
<td class="py-4 px-6 text-xs monospace"><a href="/identity/{{ o[8] }}{% if o[9]==true %}{% endif %}">{{ o[8] }}</a></td>
|
||||||
<td class="py-4"><span class="inline-flex align-middle items-center justify-center w-9 h-10 bg-white-50 rounded"><img class="h-7" src="/static/images/coins/{{ o[2]|replace(" ", "-") }}.png" alt=""></span> {{ o[2] }}</td>
|
<td class="py-4"><span class="inline-flex align-middle items-center justify-center w-9 h-10 bg-white-50 rounded">
|
||||||
|
{% if o[9]==true %}
|
||||||
|
<img class="h-7" src="/static/images/coins/{{ o[3]|replace(" ", "-") }}.png" alt=""></span> {{ o[3] }}</td>
|
||||||
|
{% else %}
|
||||||
|
<img class="h-7" src="/static/images/coins/{{ o[2]|replace(" ", "-") }}.png" alt=""></span> {{ o[2] }}</td>
|
||||||
|
{% endif %}
|
||||||
<td class="py-4 text-xs">{{ o[4] }}</td>
|
<td class="py-4 text-xs">{{ o[4] }}</td>
|
||||||
<td class="py-4"><span class="inline-flex align-middle items-center justify-center w-9 h-10 bg-white-50 rounded"><img class="h-7" src="/static/images/coins/{{ o[3]|replace(" ", "-") }}.png" alt=""></span> {{ o[3] }}</td>
|
<td class="py-4"><span class="inline-flex align-middle items-center justify-center w-9 h-10 bg-white-50 rounded">
|
||||||
|
{% if o[9]==true %}
|
||||||
|
<img class="h-7" src="/static/images/coins/{{ o[2]|replace(" ", "-") }}.png" alt=""></span> {{ o[2] }}</td>
|
||||||
|
{% else %}
|
||||||
|
<img class="h-7" src="/static/images/coins/{{ o[3]|replace(" ", "-") }}.png" alt=""></span> {{ o[3] }}</td>
|
||||||
|
{% endif %}
|
||||||
<td class="py-4 text-xs">{{ o[5] }}</td>
|
<td class="py-4 text-xs">{{ o[5] }}</td>
|
||||||
<td class="py-4 text-xs px-6">{{ o[6] }}</td>
|
<td class="py-4 text-xs px-6">{{ o[6] }}</td>
|
||||||
<!-- <td class="py-4 px-6">{{ o[10] }}</td>-->
|
<!-- <td class="py-4 px-6">{{ o[10] }}</td>-->
|
||||||
|
|
Loading…
Reference in a new issue