{% extends "layout.html" %} {% from "partials/library_toolbar.html" import library_toolbar %} {% block content %} {{ library_toolbar( title="Scene", category="scenes", create_url=url_for('create_scene'), create_label="Scene", has_batch_gen=true, has_regen_all=true, has_lora_create=true, bulk_create_url=url_for('bulk_create_scenes_from_loras'), has_tags=true, regen_tags_category="scenes", rescan_url=url_for('rescan_scenes'), get_missing_url="/get_missing_scenes", clear_covers_url="/clear_all_scene_covers", generate_url_pattern="/scene/{slug}/generate" ) }}
{% for scene in scenes %}
{% if scene.image_path %} {{ scene.name }} No Image {% else %} {% set fallback = random_gen_image('scenes', scene.slug) %} {% if fallback %} {{ scene.name }} No Image {% else %} {{ scene.name }} No Image {% endif %} {% endif %}
{% if scene.is_favourite %} {% endif %}{{ scene.name }}{% if scene.is_nsfw %} NSFW{% endif %}

{% set ns = namespace(parts=[]) %} {% if scene.data.scene is mapping %} {% for v in scene.data.scene.values() %} {% if v %}{% set ns.parts = ns.parts + [v] %}{% endif %} {% endfor %} {% endif %} {% if scene.data.lora and scene.data.lora.lora_triggers %} {% set ns.parts = ns.parts + [scene.data.lora.lora_triggers] %} {% endif %} {{ ns.parts | join(', ') }}

{% endfor %}
{% endblock %} {% block scripts %} {% endblock %}