Add modular template selection

This commit is contained in:
Matias Griese
2014-10-08 14:34:37 +03:00
parent 0279fa5167
commit 0d587b087a

View File

@@ -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 } %}