{% for prompt in data %} {% endfor %}
S. No. Name Description Tags Owner Team Visibility Status Actions
{{ (pagination.page - 1) * pagination.per_page + loop.index }} {{ prompt.name }} {% set clean_desc = (prompt.description or "") | replace('\n', ' ') | replace('\r', ' ') %} {% set refactor_desc = clean_desc | striptags | trim | escape %} {% if refactor_desc | length is greaterthan 220 %} {{ refactor_desc[:400] + "..." }} {% else %} {{ refactor_desc }} {% endif %} {% if prompt.tags %} {% for tag in prompt.tags %}{{ tag.id }}{% endfor %} {% else %}None{% endif %} {{ prompt.owner_email }} {% if prompt.team %}{{ prompt.team }}{% else %}None{% endif %} {% if prompt.visibility == 'public' %}🌍 Public{% elif prompt.visibility == 'team' %}πŸ‘₯ Team{% else %}πŸ”’ Private{% endif %}
{% set enabled = prompt.enabled %}{% if enabled %}Active{% else %}Inactive{% endif %}
{% set base_url = root_path + '/admin/prompts/partial' %} {% set hx_target = '#prompts-table' %} {% set hx_indicator = '#prompts-loading' %} {% set query_params = {'include_inactive': include_inactive} %} {% include 'pagination_controls.html' %}