use template element for badge template

This commit is contained in:
2025-12-15 19:34:16 +03:00
parent b2d16e305d
commit c655caab9e
7 changed files with 13 additions and 19 deletions

View File

@@ -1,4 +1,4 @@
{% from 'common/macros.html' import babycode_editor_component %}
{% from 'common/macros.html' import babycode_editor_component, badge_editor_single %}
{% extends 'base.html' %}
{% block title %}settings{% endblock %}
{% block content %}
@@ -68,4 +68,8 @@
<a class="linkbutton critical" href="{{ url_for('users.delete_page', username=active_user.username) }}">Delete account</a>
</div>
</div>
<template id='badge-editor-template'>
{{ badge_editor_single(options=uploads) }}
</template>
{% endblock %}