mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-10-26 15:56:30 +01:00
Added clear cache permanently to quick-tray [#1353
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
1. [](#new)
|
||||
* Added styling and lang for **Route Overrides** in the default page blueprint
|
||||
* Added clear cache permanently to quick-tray [#1353](https://github.com/getgrav/grav-plugin-admin/issues/1353)
|
||||
1. [](#improved)
|
||||
* Added option to toggle between `line-awesome` and `font-awesome` icon sets [#1334](https://github.com/getgrav/grav-plugin-admin/issues/1334)
|
||||
* Added preview from page list view [#1250](https://github.com/getgrav/grav-plugin-admin/pull/1250)
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
{% if grav.twig.plugins_quick_tray %}
|
||||
<ul id="admin-nav-quick-tray">
|
||||
{% set clear_cache_url = base_url_relative ~ '/cache.json/task' ~ config.system.param_sep ~ 'clearCache'|e('html_attr') %}
|
||||
<ul id="admin-nav-quick-tray">
|
||||
<li class="hint--bottom" data-hint="{{ "PLUGIN_ADMIN.CLEAR_CACHE"|tu }}">
|
||||
<a data-clear-cache-type="" data-clear-cache="{{ uri.addNonce(clear_cache_url, 'admin-form', 'admin-nonce') }}">
|
||||
<i class="fa fa-trash"></i>
|
||||
</a>
|
||||
</li>
|
||||
{% if grav.twig.plugins_quick_tray %}
|
||||
{% for label, item in grav.twig.plugins_quick_tray %}
|
||||
{% if authorize((item.authorize is defined and item.authorize is iterable) ? item.authorize : [item.authorize ?: ('admin.' ~ (item.location ?: item.route)), 'admin.super']) %}
|
||||
{% set data_tags = '' %}
|
||||
@@ -19,5 +25,12 @@
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
<li class="hint--bottom" data-hint="Add the 'quick-tray' plugin for more...">
|
||||
<a href="{{ base_url_relative ~ '/plugins/install' }}">
|
||||
<i class="fa fa-plus"></i>
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user