{% extends "layouts/base.html" %} {% block main_content %} {% set breadcrumbs = [ {"name": t('nav.home'), "url": "/", "icon": "fas fa-home"}, {"name": t('nav.prompts'), "icon": "fas fa-file-text"} ] %} {% set header_title = t('nav.prompts') %} {% set header_subtitle = t('prompts.title') %} {% set header_icon = "fas fa-file-text" %} {% set header_actions = [ { "type": "button", "text": t('prompts.new'), "url": "/prompts/new", "icon": "fas fa-plus", "style": "primary" }, { "type": "dropdown", "text": t('common.actions'), "icon": "fas fa-ellipsis-v", "style": "secondary", "items": [ {"text": t('common.import'), "url": "/prompts/import", "icon": "fas fa-upload"}, {"text": t('common.export'), "url": "/prompts/export", "icon": "fas fa-download"}, {"text": t('nav.settings'), "url": "/settings", "icon": "fas fa-cog"} ] } ] %} {% include "components/page_header.html" %}
{% if is_multi_tenant_mode %}
{% endif %}
{% if prompts %}
    {% for prompt in prompts %}
  • {{ prompt.name }}

    {{ prompt.category }} {% if prompt.tags %} {% for tag in prompt.tags[:3] %} {{ tag }} {% endfor %} {% if prompt.tags|length > 3 %} +{{ prompt.tags|length - 3 }} more {% endif %} {% endif %}

    {{ prompt.description or prompt.content[:150] + '...' if prompt.content|length > 150 else prompt.content }}

    {{ t('prompts.recently_created') }}
    {{ t('prompts.recently_modified') }}
    {{ prompt.content|length if prompt.content else 0 }} {{ t('prompts.characters') }}
    {% if is_multi_tenant_mode %}
    {% if prompt.visibility == 'public' %} {{ t('prompts.public') }} {% else %} {{ t('prompts.private') }} {% endif %}
    {% endif %}
  • {% endfor %}
{% else %}

{{ t('prompts.no_prompts_found') }}

{{ t('prompts.get_started_message') }}

{{ t('prompts.create_first') }}
{% endif %}
{% endblock %}