{% for prompt in data %} {% set prompt_label = prompt.displayName or prompt.originalName or prompt.name or prompt.id %} {% set prompt_gateway = prompt.gatewaySlug or 'Local' %} {% set prompt_tech_name = prompt.name or prompt.originalName or prompt.id %} {% set can_modify = is_admin or prompt.owner_email == current_user_email or prompt.ownerEmail == current_user_email or (prompt.visibility == 'team' and prompt.teamId and user_team_roles.get(prompt.teamId|string) == 'owner') or (prompt.visibility == 'team' and prompt.team_id and user_team_roles.get(prompt.team_id|string) == 'owner') %} {% endfor %}
Actions S. No. Gateway Name Name Prompt ID Description Tags Owner Team Status
{{ (pagination.page - 1) * pagination.per_page + loop.index }} {{ prompt_gateway }}
{{ prompt_label }}
{{ prompt_tech_name }}
{% if prompt.title %}
{{ prompt.title }}
{% endif %}
{{ prompt.id }}
{% set clean_desc = (prompt.description or "") | decode_html | replace('\n', ' ') | replace('\r', ' ') %} {% set refactor_desc = clean_desc | striptags | trim %} {% if refactor_desc | length is greaterthan 220 %} {{ refactor_desc[:400] + "..." }} {% else %} {{ refactor_desc }} {% endif %} {% if prompt.tags %} {% for tag in prompt.tags %}{% if tag is mapping %}{{ tag.id }}{% else %}{{ tag }}{% endif %}{% endfor %} {% else %}None{% endif %} {{ prompt.ownerEmail or 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_swap = 'outerHTML' %} {% set hx_indicator = '#prompts-loading' %} {% set table_name = 'prompts' %} {% set query_params = query_params if query_params is defined else {'include_inactive': include_inactive} %} {% include 'pagination_controls.html' %}