{% block contenttools %}
{% if result %}
{% if command == "search" %}
{% include("partials/tools_search.html") %}
{% elif state.command_url in ("/contacts/view/", "/contacts/", "/contacts/add/") %}
{% include("partials/tools_contacts.html") %}
{% elif state.command_url in ("/tags/", "/tags/add/", "/filter/list/") %}
{% include("partials/tools_tags.html") %}
{% elif state.command_url in ("/settings/") %}
{% include("partials/tools_settings.html") %}
{% elif state.command_url == "/message/" %}
{% include("partials/tools_message.html") %}
{% else %}
{% include("partials/tools_default.html") %}
{% endif %}
{% endif %}
{% endblock %}
{% block content %}{{results}}{% endblock %}