{% extends "admin/_layout.html" %} {% from "_macros.html" import icon %} {% set section = "tools" %} {% block title %}Tools - LLeMbas{% endblock %} {% block heading %}Tools{% endblock %} {% block admin_content %}

HTTP calls a model can make while it answers. Each one is offered to models marked Custom tools, to people who have the permission, and — if it is restricted — only to the groups you choose. The model decides when to call it from the description you write, so write that as if explaining to a colleague what the tool is for.

{% if saved %}
{{ icon("check", "icon--sm") }} {{ saved }}
{% endif %} {% if not total %}
{{ icon("link", "empty__mark") }}

No tools yet. Define one — a name, a description, and a URL with {{ '{{placeholders}}' }} in it.

{% else %} {# Filters are links, so a filtered view is a real URL you can keep or share. #}
{% for key, label in filters.items() %} {{ label }} {{ counts[key] }} {% endfor %}
{% if q or active_filter != "all" %} Clear {% endif %} {{ icon("plus", "icon--sm") }} New tool
{% if not tools %}

Nothing matches that filter.

{% else %}
{% for tool in tools %}
{{ page_start + loop.index }}
{{ tool.name }} {% if not tool.enabled %}disabled{% endif %} {% if not tool.public %}restricted{% endif %} {% if tool.allow_private %}private network{% endif %} {% if tool.last_error %}last call failed{% endif %}
{{ tool.slug }} · {{ tool.method }} {{ tool.url_template }}
{% endfor %}
{% endif %} {% endif %} {% endblock %}