updated pages
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user