{% extends "layout.html" %} {% from "partials/library_toolbar.html" import library_toolbar %} {% block content %} {{ library_toolbar( title="Style", category="styles", create_url=url_for('create_style'), create_label="Style", has_batch_gen=true, has_regen_all=true, has_lora_create=true, bulk_create_url=url_for('bulk_create_styles_from_loras'), has_tags=true, regen_tags_category="styles", rescan_url=url_for('rescan_styles'), get_missing_url="/get_missing_styles", clear_covers_url="/clear_all_style_covers", generate_url_pattern="/style/{slug}/generate" ) }}
{% for style in styles %}
{% if style.image_path %} {{ style.name }} No Image {% else %} {% set fallback = random_gen_image('styles', style.slug) %} {% if fallback %} {{ style.name }} No Image {% else %} {{ style.name }} No Image {% endif %} {% endif %}
{% if style.is_favourite %} {% endif %}{{ style.name }}{% if style.is_nsfw %} NSFW{% endif %}

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

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