{% extends "layout.html" %} {% block content %} {% from "partials/library_toolbar.html" import library_toolbar %} {{ library_toolbar( title="Look", category="looks", create_url=url_for('create_look'), create_label="Look", has_batch_gen=true, has_regen_all=true, has_lora_create=true, bulk_create_url=url_for('bulk_create_looks_from_loras'), has_tags=true, regen_tags_category="looks", rescan_url=url_for('rescan_looks'), get_missing_url="/get_missing_looks", clear_covers_url="/clear_all_look_covers", generate_url_pattern="/look/{slug}/generate" ) }}
{% for look in looks %}
{% if look.image_path %} {{ look.name }} No Image {% else %} {% set fallback = random_gen_image('looks', look.slug) %} {% if fallback %} {{ look.name }} No Image {% else %} {{ look.name }} No Image {% endif %} {% endif %} {% if look_assignments.get(look.look_id, 0) > 0 %} {{ look_assignments.get(look.look_id, 0) }} {% endif %}
{% if look.is_favourite %} {% endif %}{{ look.name }}{% if look.is_nsfw %} NSFW{% endif %}
{% if look.character_id %}

{{ look.character_id.replace('_', ' ').title() }}

{% endif %}

{% set ns = namespace(parts=[]) %} {% if look.data.positive %}{% set ns.parts = ns.parts + [look.data.positive] %}{% endif %} {% if look.data.lora and look.data.lora.lora_triggers %} {% set ns.parts = ns.parts + [look.data.lora.lora_triggers] %} {% endif %} {{ ns.parts | join(', ') }}

{% else %}

No looks found. Add JSON files to data/looks/ or use the create-from-LoRAs button above.

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