refactor: decorators, models and more broken bits
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
{% macro window_vars(user, wallet) -%}
|
||||
<script>
|
||||
window.extensions = {{ EXTENSIONS | tojson | safe }};
|
||||
{% if user %}
|
||||
window.user = {{ user | tojson | safe }};
|
||||
{% endif %}
|
||||
{% if wallet %}
|
||||
window.wallet = {{ wallet | tojson | safe }};
|
||||
window.transactions = {{ wallet.get_transactions() | tojson | safe }};
|
||||
{% endif %}
|
||||
</script>
|
||||
{%- endmacro %}
|
||||
Reference in New Issue
Block a user