Initial commit

This commit is contained in:
2024-08-27 20:33:44 +02:00
commit 1f1832267d
14794 changed files with 1599592 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
{% load wagtailimages_tags wagtailadmin_tags %}
{% load i18n %}
{% trans "Insert embed" as ins_emb_str %}
{% include "wagtailadmin/shared/header.html" with title=ins_emb_str %}
<div class="tab-content">
<section id="form" class="active nice-padding">
<form class="embed-form" action="{% url 'wagtailembeds:chooser_upload' %}" method="POST" novalidate>
{% csrf_token %}
<ul class="fields">
{% for field in form %}
<li>{% formattedfield field %}</li>
{% endfor %}
<li>
<button
type="submit"
class="button button-longrunning"
data-controller="w-progress"
data-action="w-progress#activate"
>
{% icon name="spinner" %}
<em data-w-progress-target="label">{% trans 'Insert' %}</em>
</button>
</li>
</ul>
</form>
</section>
</div>

View File

@@ -0,0 +1,13 @@
<div class="embed-placeholder" contenteditable="false" data-embedtype="media" data-url="{{ embed.url }}">
<h3>{{ embed.title }}</h3>
<p>URL: {{ embed.url }}</p>
{% if embed.provider_name %}
<p>Provider: {{ embed.provider_name }}</p>
{% endif %}
{% if embed.author_name %}
<p>Author: {{ embed.author_name }}</p>
{% endif %}
{% if embed.thumbnail_url %}
<img src="{{ embed.thumbnail_url }}" alt="{{ embed.title }}">
{% endif %}
</div>

View File

@@ -0,0 +1,3 @@
<div{% if embed.is_responsive %} style="padding-bottom: {{ embed.ratio_css }};" class="responsive-object"{% endif %}>
{{ embed.html|safe }}
</div>