added a save location notice to configuration/site editing pages

This commit is contained in:
Andy Miller
2015-08-21 15:33:04 -06:00
parent bad82c1560
commit 7a3809d2f1
4 changed files with 8 additions and 0 deletions

View File

@@ -213,6 +213,7 @@ class AdminPlugin extends Plugin
($twig->twig_vars['base_url_relative'] != '/' ? '/' : '') . $twig->twig_vars['admin_route'];
$twig->twig_vars['theme_url'] = '/user/plugins/admin/themes/' . $this->theme;
$twig->twig_vars['base_url'] = $twig->twig_vars['base_url_relative'];
$twig->twig_vars['base_path'] = GRAV_ROOT;
$twig->twig_vars['admin'] = $this->admin;
switch ($this->template) {

View File

@@ -417,6 +417,7 @@ en:
OF_YOUR: of your
HAVE_AN_UPDATE_AVAILABLE: have an update available
SAVE_AS: Save as
SAVE_LOCATION: Save location
MODAL_DELETE_PAGE_CONFIRMATION_REQUIRED_DESC: Are you sure you want to delete this page and all it's children? If the page is translated in other languages, those translations will be kept and must be deleted separately. Otherwise the page folder will be deleted along with its subpages. This action cannot be undone.
es:

View File

@@ -18,6 +18,8 @@
{% block content %}
{% set data = admin.data('site') %}
<br />
<div class="alert notice">{{ "PLUGIN_ADMIN.SAVE_LOCATION"|tu }}: <b>{{ data.file.filename|replace({(base_path):''}) }}</b></div>
{% include 'partials/blueprints.html.twig' with { blueprints: data.blueprints, data: data } %}
{% endblock %}

View File

@@ -18,6 +18,10 @@
{% block content %}
{% set data = admin.data('system') %}
<br />
{{ dump(base_path) }}
<div class="alert notice">{{ "PLUGIN_ADMIN.SAVE_LOCATION"|tu }}: <b>{{ data.file.filename|replace({(base_path):''}) }}</b></div>
{% include 'partials/blueprints.html.twig' with { blueprints: data.blueprints, data: data } %}
{% endblock %}