{% load i18n %} {% load ravix_ui %} {% with m=manifest %}
{% trans "Slug" %}
{{ m.slug }}
{% trans "Version" %}
{{ m.version }}
{% trans "Creator" %}
{{ m.author|default:"—" }}
{% trans "Compatibility with Ravix" %}
{{ m.ravix }} (API {{ m.api_version }})
{% if m.requires %}
{% trans "Dependencies" %}
{% for k, v in m.requires.items %}{{ k }} {{ v }}{% if not forloop.last %}{% trans "," %} {% endif %}{% endfor %}
{% endif %}
{% trans "Database tables" %}
{% if m.models %}{% trans "Yes — tables with the prefix" %} plugin_{{ m.slug }}_ {% trans "will be created" %}{% else %}{% trans "No" %}{% endif %}
{% trans "Admin pages" %}
{% for p in m.admin_pages %}{% blocktrans trimmed with title=p.title|tr %}{{ title }} (permission:{% endblocktrans %} {{ p.capability }}){% if not forloop.last %}
{% endif %}{% empty %}—{% endfor %}
{% trans "Public routes" %}
{% for r in m.public_routes %}/ext/{{ m.slug }}/{{ r.path }} ({{ r.methods|join:", " }}){% if not forloop.last %}
{% endif %}{% empty %}—{% endfor %}
{% trans "Hooks" %}
{% for h in m.hooks %}{{ h.name }}{% if not forloop.last %}{% trans "," %} {% endif %}{% empty %}—{% endfor %}
{% trans "New permissions" %}
{% for k, v in m.capabilities.items %}{{ k }} — {{ v }}{% if not forloop.last %}
{% endif %}{% empty %}—{% endfor %}{% if m.capabilities %}
{% trans "(granted only to the admin and superadmin roles)" %}{% endif %}
{% trans "Settings" %}
{% blocktrans trimmed with settings=m.settings|length|fa_digits %}{{ settings }} items{% endblocktrans %}
{% endwith %}