mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-01-09 09:02:59 +01:00
Add modular template selection
This commit is contained in:
@@ -15,6 +15,8 @@
|
||||
{% set mode = 'list' %}
|
||||
{% endif %}
|
||||
|
||||
{% set modular = context.modular ? 'modular_' : '' %}
|
||||
|
||||
{% set warn = config.plugins.admin.warnings.delete_page %}
|
||||
|
||||
{% block stylesheets %}
|
||||
@@ -120,7 +122,7 @@
|
||||
{% endif %}
|
||||
|
||||
{% if admin.session.expert == '1' %}
|
||||
{% include 'partials/blueprints-raw.html.twig' with { blueprints: admin.blueprints('pages/raw'), data: context } %}
|
||||
{% include 'partials/blueprints-raw.html.twig' with { blueprints: admin.blueprints('pages/'~modular~'raw'), data: context } %}
|
||||
|
||||
{% else %}
|
||||
{% include 'partials/blueprints.html.twig' with { blueprints: context.blueprints, data: context } %}
|
||||
|
||||
Reference in New Issue
Block a user