Fix shop MBux button wrapping to two lines.

remotes/1693045480750635534/spooky-22
Snakes 2022-05-17 22:07:07 -04:00
parent f9bfb6ddc6
commit 8d6e542eaf
1 changed files with 10 additions and 13 deletions

View File

@ -61,23 +61,20 @@
<tbody>
{% for a in awards %}
<tr>
<td><i class="{{a['icon']}} {{a['color']}}" style="font-size: 30px"></i></td>
<td>{{a['title']}}</td>
<td class="shop-table-icon"><i class="{{a['icon']}} {{a['color']}}" style="font-size: 30px"></i></td>
<td class="shop-table-title">{{a['title']}}</td>
{% if a['baseprice'] != a['price'] %}
<td><strike>{{a['baseprice']}}</strike> <em class="text-success">{{a['price']}}</em></td>
<td class="shop-table-price"><strike>{{a['baseprice']}}</strike> <em class="text-success">{{a['price']}}</em></td>
{% else %}
<td class="shop-table-price">{{a['price']}}</td>
{% endif %}
{% if a['baseprice'] == a['price'] %}
<td>{{a['price']}}</td>
{% endif %}
<td>{{a['owned']}}</td>
<td class="shop-table-owned">{{a['owned']}}</td>
{% set kind = a['kind'] %}
<td>
{% if a['kind'] != "benefactor" %}<a class="d-flex btn btn-success {% if v.coins < a['price'] %}disabled{% endif %}" role="button" onclick="post_toast(this,'/buy/{{kind}}')"><span class="m-auto">Buy with coins</span></a>{% endif %}
{% if a['kind'] != "grass" %}<a class="d-flex marseybux btn btn-success {% if v.procoins < a['price'] %}disabled{% endif %}" role="button" onclick="post_toast(this,'/buy/{{kind}}?mb=true')"><span class="m-auto">Buy with marseybux</span></a>{% endif %}
</td>
<td>
{{a['description']}}
<td class="shop-table-actions">
{% if a['kind'] != "benefactor" %}<a class="d-flex btn btn-success {% if v.coins < a['price'] %}disabled{% endif %}" role="button" onclick="post_toast(this,'/buy/{{kind}}')"><span class="m-auto">Buy with Coins</span></a>{% endif %}
{% if a['kind'] != "grass" %}<a class="d-flex marseybux btn btn-success {% if v.procoins < a['price'] %}disabled{% endif %}" role="button" onclick="post_toast(this,'/buy/{{kind}}?mb=true')"><span class="m-auto">Buy with MBux</span></a>{% endif %}
</td>
<td class="shop-table-description">{{a['description']}}</td>
</tr>
{% endfor %}
</table>