From 6476e7a1031a9229a2b74b32df6fce6d29d73699 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Tue, 1 Mar 2016 18:28:38 +0100 Subject: [PATCH] Overhauled ACP layout, menu and permissions --- com.woltlab.wcf/acpMenu.xml | 1311 +++++++++-------- com.woltlab.wcf/templates/userNotice.tpl | 2 +- com.woltlab.wcf/userGroupOption.xml | 373 +++-- .../files/acp/images/wcfLogo-small.png | Bin 0 -> 1751 bytes wcfsetup/install/files/acp/images/wcfLogo.png | Bin 3555 -> 2928 bytes wcfsetup/install/files/acp/js/WCF.ACP.js | 10 +- wcfsetup/install/files/acp/style/layout.scss | 186 +++ .../install/files/acp/style/mainMenu.scss | 59 - .../install/files/acp/style/pageMenu.scss | 0 .../install/files/acp/templates/footer.tpl | 5 +- .../install/files/acp/templates/header.tpl | 123 +- .../install/files/acp/templates/index.tpl | 2 +- .../files/acp/templates/packageList.tpl | 10 +- .../files/acp/templates/pageHeader.tpl | 14 - .../files/acp/templates/pageHeaderLogo.tpl | 7 +- .../files/acp/templates/pageHeaderMenu.tpl | 51 +- .../files/acp/templates/pageHeaderSearch.tpl | 16 +- .../files/acp/templates/pageHeaderUser.tpl | 20 +- .../install/files/acp/templates/pageMenu.tpl | 53 + .../files/js/WoltLab/WCF/Acp/Bootstrap.js | 13 +- .../files/js/WoltLab/WCF/Acp/Ui/Page/Menu.js | 71 + .../lib/acp/action/CacheClearAction.class.php | 2 +- .../acp/form/ApplicationEditForm.class.php | 2 +- .../lib/acp/form/CronjobAddForm.class.php | 2 +- .../lib/acp/form/DataImportForm.class.php | 2 +- .../files/lib/acp/form/OptionForm.class.php | 2 +- .../form/PackageStartInstallForm.class.php | 2 +- .../form/PackageUpdateServerAddForm.class.php | 2 +- .../lib/acp/form/RescueModeForm.class.php | 2 +- .../acp/page/ACPSessionLogListPage.class.php | 2 +- .../lib/acp/page/ACPSessionLogPage.class.php | 2 +- .../page/ApplicationManagementPage.class.php | 2 +- .../lib/acp/page/CacheListPage.class.php | 2 +- .../lib/acp/page/CronjobListPage.class.php | 2 +- .../lib/acp/page/CronjobLogListPage.class.php | 2 +- .../acp/page/ExceptionLogViewPage.class.php | 2 +- .../files/lib/acp/page/PHPInfoPage.class.php | 2 +- .../PackageInstallationConfirmPage.class.php | 4 +- .../lib/acp/page/PackageListPage.class.php | 2 +- .../files/lib/acp/page/PackagePage.class.php | 2 +- .../lib/acp/page/PackageUpdatePage.class.php | 2 +- .../PackageUpdateServerListPage.class.php | 2 +- .../PluginStorePurchasedItemsPage.class.php | 2 +- .../lib/acp/page/RebuildDataPage.class.php | 2 +- .../files/lib/acp/page/StatPage.class.php | 4 +- ...serAuthenticationFailureListPage.class.php | 2 +- .../lib/data/cronjob/CronjobAction.class.php | 6 +- .../cronjob/log/CronjobLogAction.class.php | 2 +- .../lib/data/option/OptionAction.class.php | 6 +- .../category/OptionCategoryAction.class.php | 6 +- .../files/lib/data/package/Package.class.php | 2 +- .../lib/data/package/PackageAction.class.php | 8 +- .../PackageInstallationQueueAction.class.php | 2 +- .../update/PackageUpdateAction.class.php | 10 +- .../PackageUpdateServerAction.class.php | 6 +- .../data/stat/daily/StatDailyAction.class.php | 2 +- .../install/files/lib/system/CLIWCF.class.php | 2 +- .../cli/command/ImportCLICommand.class.php | 2 +- .../cli/command/PackageCLICommand.class.php | 6 +- .../system/importer/ImportHandler.class.php | 2 +- .../PackageACPSearchResultProvider.class.php | 2 +- .../lib/system/style/StyleCompiler.class.php | 2 +- .../AbstractRebuildDataWorker.class.php | 2 +- .../lib/system/worker/ImportWorker.class.php | 2 +- .../files/style/layout/pageFooter.scss | 4 +- wcfsetup/install/lang/de.xml | 58 +- wcfsetup/install/lang/en.xml | 46 +- wcfsetup/setup/db/install.sql | 2 +- 68 files changed, 1308 insertions(+), 1252 deletions(-) create mode 100644 wcfsetup/install/files/acp/images/wcfLogo-small.png create mode 100644 wcfsetup/install/files/acp/style/layout.scss delete mode 100644 wcfsetup/install/files/acp/style/mainMenu.scss create mode 100644 wcfsetup/install/files/acp/style/pageMenu.scss create mode 100644 wcfsetup/install/files/acp/templates/pageMenu.tpl create mode 100644 wcfsetup/install/files/js/WoltLab/WCF/Acp/Ui/Page/Menu.js diff --git a/com.woltlab.wcf/acpMenu.xml b/com.woltlab.wcf/acpMenu.xml index 29818e763c..3d3f75b860 100644 --- a/com.woltlab.wcf/acpMenu.xml +++ b/com.woltlab.wcf/acpMenu.xml @@ -1,669 +1,670 @@ - + + 1 - - - - - wcf.acp.menu.link.system - 1 - admin.system.canEditOption - - - - wcf.acp.menu.link.option - 1 - - - - wcf.acp.menu.link.option - 2 - - - - - - wcf.acp.menu.link.system - 2 - admin.system.package.canInstallPackage,admin.system.package.canUpdatePackage,admin.system.package.canUninstallPackage,admin.system.package.canEditServer - - - - - wcf.acp.menu.link.package - admin.system.canManageApplication - - - - - wcf.acp.menu.link.package - admin.system.package.canUpdatePackage,admin.system.package.canUninstallPackage - - - - - wcf.acp.menu.link.package.list - admin.system.package.canInstallPackage - fa-plus - - - - - wcf.acp.menu.link.package - admin.system.package.canEditServer - - - - - - wcf.acp.menu.link.system - 3 - - - - - wcf.acp.menu.link.cronjob - admin.system.canManageCronjob - 1 - - - - - wcf.acp.menu.link.cronjob.list - admin.system.canManageCronjob - 2 - fa-plus - - - - - wcf.acp.menu.link.system - 4 - - - wcf.acp.menu.link.captcha - - admin.captcha.canManageCaptchaQuestion - - - wcf.acp.menu.link.captcha.question.list - - admin.captcha.canManageCaptchaQuestion - fa-plus - - - - - wcf.acp.menu.link.system - 5 - - - - - wcf.acp.menu.link.maintenance - admin.system.canManageApplication - - - - - wcf.acp.menu.link.maintenance - admin.system.canRebuildData - - - - - wcf.acp.menu.link.maintenance - admin.system.canImportData - - - - - - wcf.acp.menu.link.system - 6 - - - - - wcf.acp.menu.link.log - admin.system.canViewLog - - - - - wcf.acp.menu.link.log - admin.system.canManageCronjob - - - - - wcf.acp.menu.link.log - admin.system.canViewLog - - - - - wcf.acp.menu.link.log - admin.system.canViewLog - - - - - wcf.acp.menu.link.log - admin.system.canViewLog - enable_user_authentication_failure - - - + fa-wrench + + + + + wcf.acp.menu.link.configuration + 1 + admin.configuration.canEditOption + + + + wcf.acp.menu.link.option + 1 + + + + wcf.acp.menu.link.option + 2 + + + + wcf.acp.menu.link.option + + admin.user.canEditActivityPoints + + + + wcf.acp.menu.link.option + + admin.user.canEditUser + + + + + wcf.acp.menu.link.option + admin.user.canManageUserOption + + + + wcf.acp.menu.link.option + + admin.captcha.canManageCaptchaQuestion + + + wcf.acp.menu.link.captcha.question.list + + admin.captcha.canManageCaptchaQuestion + fa-plus + + + + + + wcf.acp.menu.link.configuration + 2 + admin.configuration.package.canInstallPackage,admin.configuration.package.canUpdatePackage,admin.configuration.package.canUninstallPackage,admin.configuration.package.canEditServer + + + + + wcf.acp.menu.link.package + admin.configuration.canManageApplication + + + + + wcf.acp.menu.link.package + admin.configuration.package.canUpdatePackage,admin.configuration.package.canUninstallPackage + + + + + wcf.acp.menu.link.package.list + admin.configuration.package.canInstallPackage + fa-plus + + + + + wcf.acp.menu.link.package + admin.configuration.package.canEditServer + + + + + + 2 - - - - - wcf.acp.menu.link.user - 1 - - - - - wcf.acp.menu.link.user.management - admin.user.canSearchUser - - - - wcf.acp.menu.link.user.list - admin.user.canSearchUser - fa-search - - - - wcf.acp.menu.link.user.list - admin.user.canAddUser - fa-plus - - - - - wcf.acp.menu.link.user.management - admin.user.canEditUser,admin.user.canDeleteUser,admin.user.canMailUser - - - - - - wcf.acp.menu.link.user.management - admin.user.canMailUser - - - - wcf.acp.menu.link.user.management - - admin.user.canEditActivityPoints - - - - wcf.acp.menu.link.user.management - - admin.user.canEditUser - - - - - - wcf.acp.menu.link.user - 2 - - - - - wcf.acp.menu.link.group - admin.user.canEditGroup,admin.user.canDeleteGroup - - - - wcf.acp.menu.link.group.list - admin.user.canAddGroup - fa-plus - - - - - - wcf.acp.menu.link.group - admin.user.canMailUser - - - - - wcf.acp.menu.link.group - admin.user.canManageGroupAssignment - - - - - wcf.acp.menu.link.user - module_user_rank - 3 - - - - wcf.acp.menu.link.user.rank - - admin.user.rank.canManageRank - - - wcf.acp.menu.link.user.rank.list - - admin.user.rank.canManageRank - fa-plus - - - - - wcf.acp.menu.link.user - 4 - - - - - wcf.acp.menu.link.user.option - admin.user.canManageUserOption - - - - wcf.acp.menu.link.user.option.list - admin.user.canManageUserOption - fa-plus - - - - - wcf.acp.menu.link.user.option - admin.user.canManageUserOption - - - - wcf.acp.menu.link.user.option.category.list - admin.user.canManageUserOption - fa-plus - - - - - wcf.acp.menu.link.user.option - admin.user.canManageUserOption - - - - - wcf.acp.menu.link.user - 5 - - - - wcf.acp.menu.link.notice - admin.notice.canManageNotice - - - - wcf.acp.menu.link.notice.list - admin.notice.canManageNotice - fa-plus - - - - wcf.acp.menu.link.user - 6 - - - - wcf.acp.menu.link.paidSubscription - admin.paidSubscription.canManageSubscription - module_paid_subscription - - - - wcf.acp.menu.link.paidSubscription - admin.paidSubscription.canManageSubscription - module_paid_subscription - - - - wcf.acp.menu.link.paidSubscription - admin.paidSubscription.canManageSubscription - module_paid_subscription - - - - 3 - - - - wcf.acp.menu.link.display - 1 - - - - wcf.acp.menu.link.dashboard - - admin.content.dashboard.canEditDashboard - - - - - wcf.acp.menu.link.display - 2 - - - - - wcf.acp.menu.link.style - admin.style.canManageStyle - - - - wcf.acp.menu.link.style.list - admin.style.canManageStyle - fa-upload - - - - wcf.acp.menu.link.style.list - admin.style.canManageStyle - fa-plus - - - - - - wcf.acp.menu.link.display - 3 - - - - - wcf.acp.menu.link.pageMenu - admin.display.canManagePageMenu - - - - wcf.acp.menu.link.pageMenu.list - admin.display.canManagePageMenu - fa-plus - - - - - - wcf.acp.menu.link.display - 4 - - - - wcf.acp.menu.link.template - admin.template.canManageTemplate - - - - wcf.acp.menu.link.template.list - admin.template.canManageTemplate - fa-plus - - - - - wcf.acp.menu.link.template - admin.template.canManageTemplate - - - - wcf.acp.menu.link.template.group.list - admin.template.canManageTemplate - fa-plus - - - - - - wcf.acp.menu.link.display - 5 - - - - wcf.acp.menu.link.language - - admin.language.canManageLanguage - - - wcf.acp.menu.link.language.list - - admin.language.canManageLanguage - fa-upload - - - - wcf.acp.menu.link.language - - admin.language.canManageLanguage - - - - wcf.acp.menu.link.language - - admin.language.canManageLanguage - - - - - - - wcf.acp.menu.link.display - - module_wcf_ad - 6 - - - - wcf.acp.menu.link.ad - admin.ad.canManageAd - - - - wcf.acp.menu.link.ad.list - admin.ad.canManageAd - fa-plus - - + fa-users + + + + + wcf.acp.menu.link.user + 1 + + + + + wcf.acp.menu.link.user.management + admin.user.canSearchUser + + + + wcf.acp.menu.link.user.list + admin.user.canSearchUser + fa-search + + + + wcf.acp.menu.link.user.list + admin.user.canAddUser + fa-plus + + + + + wcf.acp.menu.link.user.management + admin.user.canEditUser,admin.user.canDeleteUser,admin.user.canMailUser + + + + + + wcf.acp.menu.link.user.management + admin.user.canMailUser + + + + + + wcf.acp.menu.link.user + 2 + + + + + wcf.acp.menu.link.group + admin.user.canEditGroup,admin.user.canDeleteGroup + + + + wcf.acp.menu.link.group.list + admin.user.canAddGroup + fa-plus + + + + + + wcf.acp.menu.link.group + admin.user.canMailUser + + + + + wcf.acp.menu.link.group + admin.user.canManageGroupAssignment + + + + + + wcf.acp.menu.link.user + module_user_rank + 3 + + + + wcf.acp.menu.link.user.rank + + admin.user.rank.canManageRank + + + wcf.acp.menu.link.user.rank.list + + admin.user.rank.canManageRank + fa-plus + + + + + + wcf.acp.menu.link.user + 4 + + + + + wcf.acp.menu.link.user.option + admin.user.canManageUserOption + + + + wcf.acp.menu.link.user.option.list + admin.user.canManageUserOption + fa-plus + + + + + wcf.acp.menu.link.user.option + admin.user.canManageUserOption + + + + wcf.acp.menu.link.user.option.category.list + admin.user.canManageUserOption + fa-plus + + + + + + wcf.acp.menu.link.user + 5 + + + + wcf.acp.menu.link.notice + admin.notice.canManageNotice + + + + wcf.acp.menu.link.notice.list + admin.notice.canManageNotice + fa-plus + + + + + + wcf.acp.menu.link.user + 6 + + + + wcf.acp.menu.link.paidSubscription + admin.paidSubscription.canManageSubscription + module_paid_subscription + + + + wcf.acp.menu.link.paidSubscription + admin.paidSubscription.canManageSubscription + module_paid_subscription + + + + wcf.acp.menu.link.paidSubscription + admin.paidSubscription.canManageSubscription + module_paid_subscription + + + + + + - 4 - - - - wcf.acp.menu.link.content - module_smiley - 1 - - - - wcf.acp.menu.link.smiley - admin.content.smiley.canManageSmiley - - - - wcf.acp.menu.link.smiley.list - admin.content.smiley.canManageSmiley - fa-plus - - - - - wcf.acp.menu.link.smiley - admin.content.smiley.canManageSmiley - - - - wcf.acp.menu.link.smiley.category.list - admin.content.smiley.canManageSmiley - fa-plus - - - - wcf.acp.menu.link.content - 2 - - - - wcf.acp.menu.link.label - admin.content.label.canManageLabel - - - - wcf.acp.menu.link.label.list - admin.content.label.canManageLabel - fa-plus - - - - - wcf.acp.menu.link.label - admin.content.label.canManageLabel - - - - wcf.acp.menu.link.label.group.list - admin.content.label.canManageLabel - fa-plus - - - - wcf.acp.menu.link.content 3 - - - - wcf.acp.menu.link.bbcode - admin.content.bbcode.canManageBBCode - - - - wcf.acp.menu.link.bbcode.list - admin.content.bbcode.canManageBBCode - fa-plus - - - - wcf.acp.menu.link.bbcode - admin.content.bbcode.canManageBBCode - - - - wcf.acp.menu.link.bbcode.mediaProvider.list - admin.content.bbcode.canManageBBCode - fa-plus - - - - wcf.acp.menu.link.content - module_tagging + fa-file-text + + + + + wcf.acp.menu.link.content + 1 + + + + + wcf.acp.menu.link.cms + admin.content.cms.canManagePage + + + + wcf.acp.menu.link.cms.page.list + admin.content.cms.canManagePage + fa-home + + + + wcf.acp.menu.link.cms.page.list + admin.content.cms.canManagePage + fa-plus + + + + + wcf.acp.menu.link.cms + admin.content.cms.canManageMenu + + + + wcf.acp.menu.link.cms.menu.list + admin.content.cms.canManageMenu + fa-plus + + + + + wcf.acp.menu.link.cms + admin.content.cms.canManageBox + + + + wcf.acp.menu.link.cms.box.list + admin.content.cms.canManageBox + fa-plus + + + + + wcf.acp.menu.link.cms + admin.content.cms.canManageMedia + + + + wcf.acp.menu.link.cms.media.list + admin.content.cms.canManageMedia + fa-plus + + + + + + wcf.acp.menu.link.content + 2 + + + + wcf.acp.menu.link.label + admin.content.label.canManageLabel + + + + wcf.acp.menu.link.label.list + admin.content.label.canManageLabel + fa-plus + + + + + wcf.acp.menu.link.label + admin.content.label.canManageLabel + + + + wcf.acp.menu.link.label.group.list + admin.content.label.canManageLabel + fa-plus + + + + + + wcf.acp.menu.link.content + 3 + + + + wcf.acp.menu.link.bbcode + admin.content.bbcode.canManageBBCode + + + + wcf.acp.menu.link.bbcode.list + admin.content.bbcode.canManageBBCode + fa-plus + + + + wcf.acp.menu.link.bbcode + admin.content.bbcode.canManageBBCode + + + + wcf.acp.menu.link.bbcode.mediaProvider.list + admin.content.bbcode.canManageBBCode + fa-plus + + + + + + wcf.acp.menu.link.content + module_tagging + 4 + + + + + wcf.acp.menu.link.tag + admin.content.tag.canManageTag + + + + wcf.acp.menu.link.tag.list + admin.content.tag.canManageTag + fa-plus + + + + + + wcf.acp.menu.link.content + 5 + + + + + wcf.acp.menu.link.attachment + admin.attachment.canManageAttachment + + + + + + + 4 + fa-comments + - - - wcf.acp.menu.link.tag - admin.content.tag.canManageTag - - - - wcf.acp.menu.link.tag.list - admin.content.tag.canManageTag - fa-plus - - - - wcf.acp.menu.link.content + + 5 - - - - - wcf.acp.menu.link.attachment - admin.attachment.canManageAttachment - - - - 5 - - - - - wcf.acp.menu.link.content - 1 - - - - - wcf.acp.menu.link.cms - admin.content.cms.canManagePage - - - - wcf.acp.menu.link.cms.page.list - admin.content.cms.canManagePage - fa-home - - - - wcf.acp.menu.link.cms.page.list - admin.content.cms.canManagePage - fa-plus - - - - - wcf.acp.menu.link.cms - admin.content.cms.canManageMenu - - - - wcf.acp.menu.link.cms.menu.list - admin.content.cms.canManageMenu - fa-plus - - - - - wcf.acp.menu.link.cms - admin.content.cms.canManageBox - - - - wcf.acp.menu.link.cms.box.list - admin.content.cms.canManageBox - fa-plus - - - - - wcf.acp.menu.link.cms - admin.content.cms.canManageMedia - - - - wcf.acp.menu.link.cms.media.list - admin.content.cms.canManageMedia - fa-plus - + fa-desktop + + + + + wcf.acp.menu.link.customization + 1 + + + + + wcf.acp.menu.link.style + admin.style.canManageStyle + + + + wcf.acp.menu.link.style.list + admin.style.canManageStyle + fa-upload + + + + wcf.acp.menu.link.style.list + admin.style.canManageStyle + fa-plus + + + + + + wcf.acp.menu.link.customization + 2 + + + + wcf.acp.menu.link.template + admin.template.canManageTemplate + + + + wcf.acp.menu.link.template.list + admin.template.canManageTemplate + fa-plus + + + + + wcf.acp.menu.link.template + admin.template.canManageTemplate + + + + wcf.acp.menu.link.template.group.list + admin.template.canManageTemplate + fa-plus + + + + + + wcf.acp.menu.link.customization + 3 + + + + wcf.acp.menu.link.language + + admin.language.canManageLanguage + + + wcf.acp.menu.link.language.list + + admin.language.canManageLanguage + fa-upload + + + + wcf.acp.menu.link.language + + admin.language.canManageLanguage + + + + wcf.acp.menu.link.language + + admin.language.canManageLanguage + + + + + + wcf.acp.menu.link.customization + module_smiley + 4 + + + + wcf.acp.menu.link.smiley + admin.content.smiley.canManageSmiley + + + + wcf.acp.menu.link.smiley.list + admin.content.smiley.canManageSmiley + fa-plus + + + + + wcf.acp.menu.link.smiley + admin.content.smiley.canManageSmiley + + + + wcf.acp.menu.link.smiley.category.list + admin.content.smiley.canManageSmiley + fa-plus + + + + + + wcf.acp.menu.link.customization + + module_wcf_ad + 5 + + + + + wcf.acp.menu.link.ad + admin.ad.canManageAd + + + + wcf.acp.menu.link.ad.list + admin.ad.canManageAd + fa-plus + + + + + + + + 6 + fa-cog + + + + + wcf.acp.menu.link.management + 1 + + + + + wcf.acp.menu.link.maintenance + admin.management.canManageCronjob + 1 + + + + wcf.acp.menu.link.cronjob.list + admin.management.canManageCronjob + 2 + fa-plus + + + + + wcf.acp.menu.link.maintenance + admin.configuration.canManageApplication + + + + + wcf.acp.menu.link.maintenance + admin.management.canRebuildData + + + + + wcf.acp.menu.link.maintenance + admin.management.canImportData + + + + + + wcf.acp.menu.link.management + 2 + + + + wcf.acp.menu.link.stat + admin.management.canViewLog + + + + + + wcf.acp.menu.link.management + 3 + + + + + wcf.acp.menu.link.log + admin.management.canViewLog + + + + + wcf.acp.menu.link.log + admin.management.canManageCronjob + + + + + wcf.acp.menu.link.log + admin.management.canViewLog + + + + + wcf.acp.menu.link.log + admin.management.canViewLog + enable_user_authentication_failure + + + + diff --git a/com.woltlab.wcf/templates/userNotice.tpl b/com.woltlab.wcf/templates/userNotice.tpl index 34c7e7d06f..34f8e2fc63 100644 --- a/com.woltlab.wcf/templates/userNotice.tpl +++ b/com.woltlab.wcf/templates/userNotice.tpl @@ -10,7 +10,7 @@

{lang}wcf.page.cookiePolicy.info{/lang}

{/if} - {if $__wcf->session->getPermission('admin.system.package.canUpdatePackage') && $__wcf->getAvailableUpdates()} + {if $__wcf->session->getPermission('admin.configuration.package.canUpdatePackage') && $__wcf->getAvailableUpdates()}

{lang}wcf.global.availableUpdates{/lang}

{/if} diff --git a/com.woltlab.wcf/userGroupOption.xml b/com.woltlab.wcf/userGroupOption.xml index 0209520d25..eb6cc9cecc 100644 --- a/com.woltlab.wcf/userGroupOption.xml +++ b/com.woltlab.wcf/userGroupOption.xml @@ -2,7 +2,7 @@ - + user @@ -29,7 +29,7 @@ user.message - + mod @@ -37,19 +37,22 @@ mod.general - + + admin - + + + admin - - admin.system - - - admin.system + + admin.configuration + + + admin @@ -59,57 +62,35 @@ admin.user - - admin.user - - - admin.user - + - + + admin - - admin.display - - - admin.display - - - admin.display - + - + + admin - - admin.content - - - admin.content - - - admin.content - - - admin.content - - - admin.content - - - admin.content - + - + + admin - - admin.display + + + + + admin + + - - - - - - - - - + + + @@ -236,6 +223,13 @@ 1 1 + - - - - - - - + - - - - + - + + + + + - + - - - - + + + + + - - - - - - - - - - - - - - - - -