diff --git a/modules/cms/controllers/Index.php b/modules/cms/controllers/Index.php index d12635a81..7751ede8f 100644 --- a/modules/cms/controllers/Index.php +++ b/modules/cms/controllers/Index.php @@ -20,6 +20,7 @@ use Cms\Classes\CmsCompoundObject; use Cms\Classes\ComponentManager; use Cms\Classes\ComponentPartial; use Backend\Classes\Controller; +use System\Helpers\DateTime; use October\Rain\Router\Router as RainRouter; use ApplicationException; use Cms\Classes\Asset; @@ -132,6 +133,7 @@ class Index extends Controller $widget = $this->makeTemplateFormWidget($type, $template); $this->vars['templatePath'] = Request::input('path'); + $this->vars['lastModified'] = DateTime::makeCarbon($template->mtime); if ($type === 'page') { $router = new RainRouter; diff --git a/modules/cms/controllers/index/_content_toolbar.htm b/modules/cms/controllers/index/_content_toolbar.htm index c3306ff0d..f86f1ccbc 100644 --- a/modules/cms/controllers/index/_content_toolbar.htm +++ b/modules/cms/controllers/index/_content_toolbar.htm @@ -15,4 +15,11 @@ data-request-confirm="" data-request-success="$.oc.cmsPage.updateTemplateList('content'); $(this).trigger('close.oc.tab', [{force: true}])" data-control="delete-button"> - + + + + \ No newline at end of file diff --git a/modules/cms/controllers/index/_layout_toolbar.htm b/modules/cms/controllers/index/_layout_toolbar.htm index b8d63d7e2..a5eb88627 100644 --- a/modules/cms/controllers/index/_layout_toolbar.htm +++ b/modules/cms/controllers/index/_layout_toolbar.htm @@ -15,4 +15,11 @@ data-request-confirm="" data-request-success="$.oc.cmsPage.updateTemplateList('layout'); $(this).trigger('close.oc.tab', [{force: true}])" data-control="delete-button"> - + + + + \ No newline at end of file diff --git a/modules/cms/controllers/index/_page_toolbar.htm b/modules/cms/controllers/index/_page_toolbar.htm index 175c3144b..d52e5ac5e 100644 --- a/modules/cms/controllers/index/_page_toolbar.htm +++ b/modules/cms/controllers/index/_page_toolbar.htm @@ -26,4 +26,11 @@ data-request-confirm="" data-request-success="$.oc.cmsPage.updateTemplateList('page'); $(this).trigger('close.oc.tab', [{force: true}])" data-control="delete-button"> - + + + + \ No newline at end of file diff --git a/modules/cms/controllers/index/_partial_toolbar.htm b/modules/cms/controllers/index/_partial_toolbar.htm index c51dee68f..0167208f4 100644 --- a/modules/cms/controllers/index/_partial_toolbar.htm +++ b/modules/cms/controllers/index/_partial_toolbar.htm @@ -15,4 +15,11 @@ data-request-confirm="" data-request-success="$.oc.cmsPage.updateTemplateList('partial'); $(this).trigger('close.oc.tab', [{force: true}])" data-control="delete-button"> - + + + + \ No newline at end of file