Split out last modified button into it's own partial

This commit is contained in:
Luke Towers 2018-11-30 15:33:53 -06:00
parent 80b5c41825
commit a7bbfe2d9d
2 changed files with 11 additions and 9 deletions

View File

@ -0,0 +1,8 @@
<?php if (isset($lastModified)): ?>
<span
class="btn empty oc-icon-calendar"
title="<?= e(trans('backend::lang.media.last_modified')) ?>: <?= $lastModified ?>"
data-toggle="tooltip"
data-placement="right">
</span>
<?php endif; ?>

View File

@ -8,13 +8,7 @@
data-request="onDelete"
data-request-confirm="<?= e(trans('cms::lang.' . $toolbarSource . '.delete_confirm_single')) ?>"
data-request-success="$.oc.cmsPage.updateTemplateList('<?= $toolbarSource ?>'); $(this).trigger('close.oc.tab', [{force: true}])"
data-control="delete-button"></button>
data-control="delete-button">
</button>
<?php if (isset($lastModified)): ?>
<span
class="btn empty oc-icon-calendar"
title="<?= e(trans('backend::lang.media.last_modified')) ?>: <?= $lastModified ?>"
data-toggle="tooltip"
data-placement="right">
</span>
<?php endif; ?>
<?= $this->makePartial('button_lastmodified'); ?>