{% extends 'partials/base.html.twig' %} {% set tools_slug = uri.basename %} {% if tools_slug == 'tools' %}{% set tools_slug = 'backups' %}{% endif %} {% set tools = admin.tools() %} {% if tools[tools_slug] is not defined %} {% set tools_slug = tools|keys|first %} {% endif %} {% set title = "PLUGIN_ADMIN.TOOLS"|t ~ ": " ~ ("PLUGIN_ADMIN." ~ tools_slug|underscorize|upper)|t %} {% set titlebar -%} {% include 'partials/tools-' ~ tools_slug ~ '-titlebar.html.twig' ignore missing %} {%- endset %} {% block titlebar %} {% if titlebar %} {{ titlebar }} {% else %}