Add counter labels and maintenance settings page to Cms provider + Language files, update CHANGELOG.md with changes

This commit is contained in:
Sam Georges 2014-11-10 20:35:20 +11:00
parent cfaf3228d9
commit ba166a0cf9
4 changed files with 57 additions and 28 deletions

View File

@ -1,6 +1,12 @@
* **Build 162** (2014-11-10)
- Fixes an issue where the *Pages* tab is shown in the CMS when permission is denied.
- Updates are no longer shown on the Dashboard if permission is denied.
- Added Maintenance mode settings to the front-end, available via Settings > CMS.
* **Build 160** (2014-11-01) * **Build 160** (2014-11-01)
- Various fixes to the Backend Brand settings page. - Various fixes to the Backend Brand settings page.
- When `cms.disableCoreUpdates` is set to **true** the Backend will no longer display updates for the core. - When `cms.disableCoreUpdates` is set to **true** the Backend will no longer display updates for the core.
- Partials can support using Components (see CMS > Partials docs).
* **Build 158** (2014-10-23) * **Build 158** (2014-10-23)
- Fixes an issue where new Themes attached to a project were not being installed on update. - Fixes an issue where new Themes attached to a project were not being installed on update.

View File

@ -36,39 +36,44 @@ class ServiceProvider extends ModuleServiceProvider
'sideMenu' => [ 'sideMenu' => [
'pages' => [ 'pages' => [
'label' => 'cms::lang.page.menu_label', 'label' => 'cms::lang.page.menu_label',
'icon' => 'icon-copy', 'icon' => 'icon-copy',
'url' => 'javascript:;', 'url' => 'javascript:;',
'attributes' => ['data-menu-item'=>'pages'], 'attributes' => ['data-menu-item'=>'pages'],
'permissions' => ['cms.manage_pages'] 'permissions' => ['cms.manage_pages'],
'counterLabel' => 'cms::lang.page.unsaved_label',
], ],
'partials' => [ 'partials' => [
'label' => 'cms::lang.partial.menu_label', 'label' => 'cms::lang.partial.menu_label',
'icon' => 'icon-tags', 'icon' => 'icon-tags',
'url' => 'javascript:;', 'url' => 'javascript:;',
'attributes' => ['data-menu-item'=>'partials'], 'attributes' => ['data-menu-item'=>'partials'],
'permissions' => ['cms.manage_partials'] 'permissions' => ['cms.manage_partials'],
'counterLabel' => 'cms::lang.partial.unsaved_label',
], ],
'layouts' => [ 'layouts' => [
'label' => 'cms::lang.layout.menu_label', 'label' => 'cms::lang.layout.menu_label',
'icon' => 'icon-th-large', 'icon' => 'icon-th-large',
'url' => 'javascript:;', 'url' => 'javascript:;',
'attributes' => ['data-menu-item'=>'layouts'], 'attributes' => ['data-menu-item'=>'layouts'],
'permissions' => ['cms.manage_layouts'] 'permissions' => ['cms.manage_layouts'],
'counterLabel' => 'cms::lang.layout.unsaved_label',
], ],
'content' => [ 'content' => [
'label' => 'cms::lang.content.menu_label', 'label' => 'cms::lang.content.menu_label',
'icon' => 'icon-file-text-o', 'icon' => 'icon-file-text-o',
'url' => 'javascript:;', 'url' => 'javascript:;',
'attributes' => ['data-menu-item'=>'content'], 'attributes' => ['data-menu-item'=>'content'],
'permissions' => ['cms.manage_content'] 'permissions' => ['cms.manage_content'],
'counterLabel' => 'cms::lang.content.unsaved_label',
], ],
'assets' => [ 'assets' => [
'label' => 'cms::lang.asset.menu_label', 'label' => 'cms::lang.asset.menu_label',
'icon' => 'icon-picture-o', 'icon' => 'icon-picture-o',
'url' => 'javascript:;', 'url' => 'javascript:;',
'attributes' => ['data-menu-item'=>'assets'], 'attributes' => ['data-menu-item'=>'assets'],
'permissions' => ['cms.manage_assets'] 'permissions' => ['cms.manage_assets'],
'counterLabel' => 'cms::lang.asset.unsaved_label',
], ],
'components' => [ 'components' => [
'label' => 'cms::lang.component.menu_label', 'label' => 'cms::lang.component.menu_label',
@ -116,7 +121,15 @@ class ServiceProvider extends ModuleServiceProvider
'icon' => 'icon-picture-o', 'icon' => 'icon-picture-o',
'url' => Backend::URL('cms/themes'), 'url' => Backend::URL('cms/themes'),
'order' => 200 'order' => 200
] ],
'maintenance_settings' => [
'label' => 'cms::lang.maintenance.settings_menu',
'description' => 'cms::lang.maintenance.settings_menu_description',
'category' => SettingsManager::CATEGORY_CMS,
'icon' => 'icon-plug',
'class' => 'Cms\Models\MaintenanceSettings',
'order' => 400,
],
]); ]);
}); });

View File

@ -28,6 +28,12 @@ return [
'activate_button' => 'Activate', 'activate_button' => 'Activate',
'active_button' => 'Activate', 'active_button' => 'Activate',
], ],
'maintenance' => [
'settings_menu' => 'Maintenance mode',
'settings_menu_description' => 'Configure the maintenance mode page and toggle the setting.',
'is_enabled' => 'Enable maintenance mode',
'is_enabled_comment' => 'When activated website visitors will see the page chosen below.',
],
'page' => [ 'page' => [
'not_found' => [ 'not_found' => [
'label' => "Page not found", 'label' => "Page not found",
@ -38,6 +44,7 @@ return [
'help' => "We're sorry, but something went wrong and the page cannot be displayed.", 'help' => "We're sorry, but something went wrong and the page cannot be displayed.",
], ],
'menu_label' => 'Pages', 'menu_label' => 'Pages',
'unsaved_label' => 'Unsaved page(s)',
'no_list_records' => 'No pages found', 'no_list_records' => 'No pages found',
'new' => 'New page', 'new' => 'New page',
'invalid_url' => 'Invalid URL format. The URL should start with the forward slash symbol and can contain digits, Latin letters and the following symbols: ._-[]:?|/+*', 'invalid_url' => 'Invalid URL format. The URL should start with the forward slash symbol and can contain digits, Latin letters and the following symbols: ._-[]:?|/+*',
@ -48,6 +55,7 @@ return [
'layout' => [ 'layout' => [
'not_found' => "The layout ':name' is not found", 'not_found' => "The layout ':name' is not found",
'menu_label' => 'Layouts', 'menu_label' => 'Layouts',
'unsaved_label' => 'Unsaved layout(s)',
'no_list_records' => 'No layouts found', 'no_list_records' => 'No layouts found',
'new' => 'New layout', 'new' => 'New layout',
'delete_confirm_multiple' => 'Do you really want to delete selected layouts?', 'delete_confirm_multiple' => 'Do you really want to delete selected layouts?',
@ -57,6 +65,7 @@ return [
'invalid_name' => "Invalid partial name: :name.", 'invalid_name' => "Invalid partial name: :name.",
'not_found' => "The partial ':name' is not found.", 'not_found' => "The partial ':name' is not found.",
'menu_label' => 'Partials', 'menu_label' => 'Partials',
'unsaved_label' => 'Unsaved partial(s)',
'no_list_records' => 'No partials found', 'no_list_records' => 'No partials found',
'delete_confirm_multiple' => 'Do you really want to delete selected partials?', 'delete_confirm_multiple' => 'Do you really want to delete selected partials?',
'delete_confirm_single' => 'Do you really want delete this partial?', 'delete_confirm_single' => 'Do you really want delete this partial?',
@ -65,6 +74,7 @@ return [
'content' => [ 'content' => [
'not_found' => "The content file ':name' is not found.", 'not_found' => "The content file ':name' is not found.",
'menu_label' => 'Content', 'menu_label' => 'Content',
'unsaved_label' => 'Unsaved content',
'no_list_records' => 'No content files found', 'no_list_records' => 'No content files found',
'delete_confirm_multiple' => 'Do you really want to delete selected content files or directories?', 'delete_confirm_multiple' => 'Do you really want to delete selected content files or directories?',
'delete_confirm_single' => 'Do you really want delete this content file?', 'delete_confirm_single' => 'Do you really want delete this content file?',
@ -103,6 +113,7 @@ return [
], ],
'asset' => [ 'asset' => [
'menu_label' => "Assets", 'menu_label' => "Assets",
'unsaved_label' => 'Unsaved asset(s)',
'drop_down_add_title' => 'Add...', 'drop_down_add_title' => 'Add...',
'drop_down_operation_title' => 'Action...', 'drop_down_operation_title' => 'Action...',
'upload_files' => 'Upload file(s)', 'upload_files' => 'Upload file(s)',

View File

@ -7,8 +7,7 @@ fields:
layout: layout:
label: system::lang.mail_templates.layout label: system::lang.mail_templates.layout
type: relation type: relation
options: emptyOption: -- No layout --
emptyOption: -- No layout --
code: code:
label: system::lang.mail_templates.code label: system::lang.mail_templates.code