generated from Sylius/PluginSkeleton
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OP-231 - add tagging renderers when instance of xRendererStrategyInte…
…rface, make cache per locale purge grouped in expanded tabs
- Loading branch information
1 parent
d0b4b62
commit c26a35d
Showing
3 changed files
with
36 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 16 additions & 11 deletions
27
templates/Admin/Grid/Action/invalidateSuluCache.html.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,22 @@ | ||
{% import '@SyliusUi/Macro/buttons.html.twig' as buttons %} | ||
|
||
{% set baseParameters = options.link.parameters %} | ||
|
||
{% if true == data.isSuluUseLocalizedUrls %} | ||
{% for locale in data.locales %} | ||
{% set parameters = baseParameters|merge({'locale': locale.code})%} | ||
{% set path = options.link.url|default(path(options.link.route, parameters)) %} | ||
<div class="ui labeled icon floating dropdown link button"> | ||
<i class="trash icon"></i> | ||
<span class="text">{{ action.label|trans }}</span> | ||
<div class="menu"> | ||
{% set baseParameters = options.link.parameters %} | ||
|
||
{% for locale in data.locales %} | ||
{% set parameters = baseParameters|merge({'locale': locale.code})%} | ||
{% set path = options.link.url|default(path(options.link.route, parameters)) %} | ||
|
||
{{ buttons.default(path, action.label ~ '_' ~locale.code|lower , null, action.icon, 'blue') }} | ||
{% endfor %} | ||
<a class="item" href="{{ path }}"><i class="trash icon test"></i> {{ locale.code}} </a> | ||
{% endfor %} | ||
</div> | ||
</div> | ||
{% else %} | ||
{% import '@SyliusUi/Macro/buttons.html.twig' as buttons %} | ||
|
||
{% set path = options.link.url|default(path(options.link.route, options.link.parameters)) %} | ||
|
||
{{ buttons.default(path, action.label , null, action.icon, 'blue') }} | ||
{% endif %} | ||
|
||
{% endif%} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters