{% if data is defined %} {% for tool in data %} {{ (pagination.page - 1) * pagination.per_page + loop.index }} {{ tool.gatewaySlug }} {{ tool.name }} {{ tool.url }} {{ tool.integrationType }} {{ tool.requestType }} {% set clean_desc = (tool.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 tool.annotations %} {% if tool.annotations.title %} 📖 {% endif %} {% if tool.annotations.destructiveHint %} ⚠️ {% endif %} {% if tool.annotations.idempotentHint %} 🔄 {% endif %} {% if tool.annotations.openWorldHint %} 🌐 {% endif %} {% else %} None {% endif %} {% if tool.tags %} {% for tag in tool.tags %} {{ tag }} {% endfor %} {% else %} None {% endif %} {{ tool.ownerEmail }} {% if tool.teamName %}{{ tool.teamName }}{% else %}None{% endif %} {% if tool.visibility == "public" %} 🌍 Public {% elif tool.visibility == "team" %} 👥 Team {% else %} 🔒 Private {% endif %}
{% set enabled = tool.enabled %} {% set reachable = tool.reachable %} {% if enabled and reachable %} Online {% elif enabled %} Offline {% else %} Inactive {% endif %}
{% if tool.enabled %}
{% else %}
{% endif %}
{% endfor %}
{% set base_url = root_path + '/admin/tools/partial' %} {% set hx_target = '#tools-table-body' %} {% set hx_indicator = '#tools-loading' %} {% set query_params = {'include_inactive': include_inactive} %} {% include 'pagination_controls.html' %}
{% else %} {% for tool in tools %} {{ (pagination.page - 1) * pagination.per_page + loop.index }} {{ tool.gatewaySlug }} {{ tool.name }} {{ tool.url }} {{ tool.integrationType }} {{ tool.requestType }} {% set clean_desc = (tool.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 tool.annotations %} {% if tool.annotations.title %} 📖 {% endif %} {% if tool.annotations.destructiveHint %} ⚠️ {% endif %} {% if tool.annotations.idempotentHint %} 🔄 {% endif %} {% if tool.annotations.openWorldHint %} 🌐 {% endif %} {% else %} None {% endif %} {% if tool.tags %} {% for tag in tool.tags %} {{ tag.id }} {% endfor %} {% else %} None {% endif %} {{ tool.ownerEmail }} {% if tool.teamName %}{{ tool.teamName }}{% else %}None{% endif %} {% if tool.visibility == "public" %} 🌍 Public {% elif tool.visibility == "team" %} 👥 Team {% else %} 🔒 Private {% endif %}
{% set enabled = tool.enabled %} {% set reachable = tool.reachable %} {% if enabled and reachable %} Online {% elif enabled %} Offline {% else %} Inactive {% endif %}
{% if tool.enabled %}
{% else %}
{% endif %}
{% endfor %} {% endif %}