forked from MarseyWorld/MarseyWorld
add approved image hosts to /formatting
parent
fd7114d335
commit
8ee8a44256
|
@ -58,4 +58,4 @@ def inject_constants():
|
||||||
"LOTTERY_ENABLED": LOTTERY_ENABLED, "GUMROAD_LINK": GUMROAD_LINK,
|
"LOTTERY_ENABLED": LOTTERY_ENABLED, "GUMROAD_LINK": GUMROAD_LINK,
|
||||||
"DEFAULT_THEME": DEFAULT_THEME, "DESCRIPTION": DESCRIPTION,
|
"DEFAULT_THEME": DEFAULT_THEME, "DESCRIPTION": DESCRIPTION,
|
||||||
"has_sidebar": has_sidebar, "has_logo": has_logo, "has_app": has_app,
|
"has_sidebar": has_sidebar, "has_logo": has_logo, "has_app": has_app,
|
||||||
"FP": FP, "NOTIF_MODACTION_JL_MIN": NOTIF_MODACTION_JL_MIN, "cache": cache, "ONLINE_STR": ONLINE_STR, "patron": patron}
|
"FP": FP, "NOTIF_MODACTION_JL_MIN": NOTIF_MODACTION_JL_MIN, "cache": cache, "ONLINE_STR": ONLINE_STR, "patron": patron, "approved_embed_hosts": approved_embed_hosts}
|
||||||
|
|
|
@ -67,7 +67,7 @@ Text 2
|
||||||
<td><a href="/">{{SITE_NAME}}</a></td>
|
<td><a href="/">{{SITE_NAME}}</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Images</td>
|
<td>Images (will embed automatically if from <a href="#approved">approved hosts</a>)</td>
|
||||||
<td>https://i.imgur.com/SwVuagI_d.webp</td>
|
<td>https://i.imgur.com/SwVuagI_d.webp</td>
|
||||||
<td><img loading="lazy" alt="example image" referrerpolicy="no-referrer" src="https://i.imgur.com/SwVuagI_d.webp"></td>
|
<td><img loading="lazy" alt="example image" referrerpolicy="no-referrer" src="https://i.imgur.com/SwVuagI_d.webp"></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -637,6 +637,24 @@ line breaks
|
||||||
</tbody>
|
</tbody>
|
||||||
</table></div>
|
</table></div>
|
||||||
|
|
||||||
|
|
||||||
|
<h5 id="approved">Approved Image Hosts</h5>
|
||||||
|
|
||||||
|
<div class="overflow-x-auto"><table class="table table-striped mb-5">
|
||||||
|
<thead class="bg-primary text-white">
|
||||||
|
<tr>
|
||||||
|
<th>Host</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{% for host in approved_embed_hosts %}
|
||||||
|
<tr>
|
||||||
|
<td>{{host}}</td>
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
|
</table></div>
|
||||||
|
|
||||||
{% include "expanded_image_modal.html" %}
|
{% include "expanded_image_modal.html" %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
Loading…
Reference in New Issue