{% extends 'base.jinja.html' %}
{% block page_title %}
{{ l.slideshow_content_page_title }}
{% endblock %}
{% block add_css %}
{{ HOOK(H_SLIDESHOW_CONTENT_CSS) }}
{% endblock %}
{% block add_js %}
{{ HOOK(H_SLIDESHOW_CONTENT_JAVASCRIPT) }}
{% endblock %}
{% block body_class %}view-content-list{% endblock %}
{% block page %}
{{ HOOK(H_SLIDESHOW_CONTENT_TOOLBAR_ACTIONS_START) }}
{{ l.slideshow_content_button_add }}
{{ l.common_new_folder }}
{{ HOOK(H_SLIDESHOW_CONTENT_TOOLBAR_ACTIONS_END) }}
{% if request.args.get('folder_not_empty_error') %}
{% with use_href=True %}
{% include 'slideshow/contents/component/explr-sidebar.jinja.html' %}
{% endwith %}
{% set ns = namespace(breadpath='') %}
{% for dir in working_folder_path[1:].split('/') %}
{% set ns.breadpath = ns.breadpath ~ '/' ~ dir %}
{% if loop.last %}
{{ truncate(dir, 25, '...') }}
{% else %}
{{ truncate(dir, 25, '...') }}
{% endif %}
{% if not loop.last %}
{% endif %}
{% endfor %}
{% set parent_path = '/'.join(working_folder_path.rstrip('/').split('/')[:-1]) %}
{% if parent_path %}
..
{% endif %}
{% for folder in working_folder_children %}
{% set folder_path = working_folder_path ~ '/' ~ folder.name %}
{{ truncate(folder.name, 25, '...') }}
{% endfor %}
{% for content in foldered_contents[working_folder.id|default(None)]|default([]) %}
{% set icon = enum_content_type.get_fa_icon(content.type) %}
{% set color = enum_content_type.get_color_icon(content.type) %}
{{ truncate(content.name, 25, '...') }}
{% endfor %}
{% include 'slideshow/contents/modal/add.jinja.html' %}
{% endblock %}