(cp 61a4259b4) fixes #1590 Handle advanced features + section title translation

This commit is contained in:
Matthieu Leproux
2021-12-29 13:34:31 +01:00
parent 6ac9c73243
commit f27cba5024
3 changed files with 22 additions and 3 deletions
@@ -121,7 +121,7 @@ $(".delete-size-check").click( function () {
{if $isWebmaster == 1}
<fieldset class="">
<legend><span class="icon-globe icon-blue"></span>Global Gallery Actions</legend>
<legend><span class="icon-globe icon-blue"></span>{'Global Gallery Actions'|translate}</legend>
<div style="display:flex;flex-wrap: wrap;">
{if (isset($U_MAINT_LOCK_GALLERY))}
<a href="{$U_MAINT_LOCK_GALLERY}" class="lock-gallery-button icon-lock maintenance-action">{'Lock gallery'|@translate}</a>
@@ -135,7 +135,7 @@ $(".delete-size-check").click( function () {
</div>
</fieldset>
<fieldset class="">
<legend><span class="icon-trash-1 icon-green"></span>Purge Actions</legend>
<legend><span class="icon-trash-1 icon-green"></span>{'Purge Actions'|@translate}</legend>
<div style="display:flex;flex-wrap: wrap;">
<a href="{$U_MAINT_USER_CACHE}" class="icon-user-1 maintenance-action">{'Purge user cache'|@translate}</a>
<a href="{$U_MAINT_ORPHAN_TAGS}" class="icon-tags maintenance-action">{'Delete orphan tags'|@translate}</a>
@@ -147,8 +147,19 @@ $(".delete-size-check").click( function () {
</div>
</fieldset>
{if isset($advanced_features) and !(count($advanced_features) < 1)}
<fieldset class="">
<legend><span class="icon-puzzle icon-purple"></span>{'Advanced features'|@translate}</legend>
<div style="display:flex;flex-wrap: wrap;">
{foreach from=$advanced_features item=feature key=key name=name}
<a href="{$feature.URL}" class="{$feature.ICON} maintenance-action">{$feature.CAPTION}</a>
{/foreach}
</div>
</fieldset>
{/if}
<fieldset class="">
<legend><span class="icon-trash-1 icon-red"></span>Purge Cache</legend>
<legend><span class="icon-trash-1 icon-red"></span>{'Purge Cache'|@translate}</legend>
<div class="template-purge">
<div class="cache-infos">