Rewrite how trade offer png's are generated to try to reduce system resources. Only render the specific html code necessary and not the entire trade offer details page.
This commit is contained in:
parent
15f8eb7cf4
commit
d5f8345581
9 changed files with 239 additions and 85 deletions
|
|
@ -17,7 +17,7 @@
|
|||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
||||
{% render_trade_offer dummy_trade_offer False False True %}
|
||||
{% render_trade_offer dummy_trade_offer True %}
|
||||
|
||||
<div class="flex justify-between mt-4">
|
||||
<button type="submit" name="edit" class="btn btn-secondary">Edit</button>
|
||||
|
|
|
|||
|
|
@ -7,11 +7,7 @@
|
|||
<div class="container mx-auto max-w-2xl mt-6">
|
||||
<h2 class="text-2xl font-bold">Trade Offer Details</h2>
|
||||
<div class="flex justify-center mt-10">
|
||||
{% if screenshot_mode == "true" %}
|
||||
{% render_trade_offer object True show_friend_code %}
|
||||
{% else %}
|
||||
{% render_trade_offer object False False True %}
|
||||
{% endif %}
|
||||
{% render_trade_offer object %}
|
||||
</div>
|
||||
{% if acceptance_form %}
|
||||
<div class="w-3/4 mx-auto mt-4">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue