feat: update versions for python packages, add Pages functionality (#1386)

This PR updates Django core version and also brings html pages support (that admins can create)
This commit is contained in:
Markos Gogoulos
2025-09-21 15:38:43 +03:00
committed by GitHub
parent cbef629baf
commit 208f0b338b
209 changed files with 7399 additions and 14 deletions

View File

@@ -7,6 +7,15 @@
{% block innercontent %}
<style>
.user-action-form-inner {
max-width: 1000px;
}
.user-action-form-inner textarea {
min-height: 60vh;
}
</style>
{% if action == 'delete' %}
<div class="user-action-form-wrap">

View File

@@ -12,12 +12,6 @@
</a>
</li>
{% if media_object.media_type == 'video' %}
<li style="display: inline-block;">
<a href="{% url 'add_subtitle' %}?m={{media_object.friendly_token}}"
style="text-decoration: none; {% if active_tab == 'subtitles' %}font-weight: bold; color: #333; padding-bottom: 3px; border-bottom: 2px solid #333;{% else %}color: #666;{% endif %}">
{{ "Captions" | custom_translate:LANGUAGE_CODE}}
</a>
</li>
<li style="display: inline-block;">
<a href="{% url 'edit_video' %}?m={{media_object.friendly_token}}"
@@ -25,6 +19,12 @@
{{ "Trim" | custom_translate:LANGUAGE_CODE}}
</a>
</li>
<li style="display: inline-block;">
<a href="{% url 'add_subtitle' %}?m={{media_object.friendly_token}}"
style="text-decoration: none; {% if active_tab == 'subtitles' %}font-weight: bold; color: #333; padding-bottom: 3px; border-bottom: 2px solid #333;{% else %}color: #666;{% endif %}">
{{ "Captions" | custom_translate:LANGUAGE_CODE}}
</a>
</li>
{% comment %}
<li style="display: inline-block;">
<a href="{% url 'edit_chapters' %}?m={{media_object.friendly_token}}"

52
templates/cms/page.html Normal file
View File

@@ -0,0 +1,52 @@
{% extends "base.html" %}
{% load i18n %}
{% block headtitle %}About - {{PORTAL_NAME}}{% endblock headtitle %}
{% block headermeta %}
{% load custom_filters %}
<meta property="og:title" content="About - {{PORTAL_NAME}}">
<meta property="og:type" content="website">
<meta property="og:description" content="">
<meta name="twitter:card" content="summary">
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BreadcrumbList",
"itemListElement": [{
"@type": "ListItem",
"position": 1,
"name": "{{PORTAL_NAME}}",
"item": {
"@type": "WebPage",
"@id": "{{FRONTEND_HOST}}"
}
},
{
"@type": "ListItem",
"position": 2,
"name": "About",
"item": {
"@type": "AboutPage",
"@id": "{{FRONTEND_HOST}}/about"
}
}]
}
</script>
{% endblock headermeta %}
{% block innercontent %}
{% get_current_language as LANGUAGE_CODE %}
<div class="custom-page-wrapper">
<h1>{{page.title}}</h1>
{{page.description|safe}}
</div>
{% endblock %}