updated pages

This commit is contained in:
2025-07-16 16:08:40 +03:00
parent 94fad22d85
commit f075cdf871
12 changed files with 1808 additions and 26 deletions

View File

@@ -105,13 +105,12 @@
{% if content %}
{% for item in content %}
<div class="content-item" data-duration="{{ item.duration }}" data-id="{{ item.id }}">
{% if item.content_type.startswith('image/') %}
{% if item.content_type == 'image' %}
<img src="{{ url_for('static', filename='uploads/' + item.file_name) }}"
alt="{{ item.original_name or item.file_name }}">
{% elif item.content_type.startswith('video/') %}
{% elif item.content_type == 'video' %}
<video muted autoplay>
<source src="{{ url_for('static', filename='uploads/' + item.file_name) }}"
type="{{ item.content_type }}">
<source src="{{ url_for('static', filename='uploads/' + item.file_name) }}">
</video>
{% endif %}
</div>