move IMAGE_FORMATS to root.html

pull/138/head
Aevann 2023-03-07 06:44:11 +02:00
parent 7b0d829cbf
commit 964a3d3883
6 changed files with 1 additions and 10 deletions

View File

@ -40,5 +40,4 @@
</div> </div>
</div> </div>
</div> </div>
{{macros.image_formats()}}
{% endblock %} {% endblock %}

View File

@ -25,6 +25,7 @@
<body {% block body_attributes %}id="{%block pagetype %}{% endblock %}"{% endblock %}> <body {% block body_attributes %}id="{%block pagetype %}{% endblock %}"{% endblock %}>
<input hidden id="gnonce" value="{{g.nonce}}"> <input hidden id="gnonce" value="{{g.nonce}}">
<input hidden id="gbrowser" value="{{g.browser}}"> <input hidden id="gbrowser" value="{{g.browser}}">
<input hidden id="IMAGE_FORMATS" value="{{IMAGE_FORMATS}}">
<script src="{{'js/top.js' | asset}}"></script> <script src="{{'js/top.js' | asset}}"></script>
{% block body required %}{% endblock %} {% block body required %}{% endblock %}
{{html_head.stylesheets_lower()}} {{html_head.stylesheets_lower()}}

View File

@ -110,7 +110,6 @@
{% endblock %} {% endblock %}
<script defer src="{{'js/vendor/marked.js' | asset}}"></script> <script defer src="{{'js/vendor/marked.js' | asset}}"></script>
<script defer src="{{'js/markdown.js' | asset}}"></script> <script defer src="{{'js/markdown.js' | asset}}"></script>
{{macros.image_formats()}}
<script defer src="{{'js/submit.js' | asset}}"></script> <script defer src="{{'js/submit.js' | asset}}"></script>
{% include "modals/emoji.html" %} {% include "modals/emoji.html" %}
{% include "modals/gif.html" %} {% include "modals/gif.html" %}

View File

@ -47,8 +47,6 @@
</div> </div>
</div> </div>
{{macros.image_formats()}}
<script defer src="{{'js/submit_hats.js' | asset}}"></script> <script defer src="{{'js/submit_hats.js' | asset}}"></script>
<h2 class="mt-5 mx-4">Pending Approval</h2> <h2 class="mt-5 mx-4">Pending Approval</h2>

View File

@ -42,8 +42,6 @@
</div> </div>
</div> </div>
{{macros.image_formats()}}
<script defer src="{{'js/submit_marseys.js' | asset}}"></script> <script defer src="{{'js/submit_marseys.js' | asset}}"></script>
<h2 class="mt-5 mx-4">Pending Approval</h2> <h2 class="mt-5 mx-4">Pending Approval</h2>

View File

@ -208,7 +208,3 @@
</div> </div>
{% endif %} {% endif %}
{% endmacro %} {% endmacro %}
{% macro image_formats() %}
<input hidden id="IMAGE_FORMATS" value="{{IMAGE_FORMATS}}">
{% endmacro %}