From 1ccc393c72aeedb6ad868915dfe48a74269cc47d Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 21 Nov 2013 20:00:25 +0100 Subject: [PATCH] Improved ACP user panel --- .../install/files/acp/templates/header.tpl | 43 ++++++++++++++++++- .../install/files/acp/templates/index.tpl | 4 -- wcfsetup/install/lang/de.xml | 7 ++- wcfsetup/install/lang/en.xml | 7 ++- 4 files changed, 54 insertions(+), 7 deletions(-) diff --git a/wcfsetup/install/files/acp/templates/header.tpl b/wcfsetup/install/files/acp/templates/header.tpl index 0ea4489f79..3600ba8083 100644 --- a/wcfsetup/install/files/acp/templates/header.tpl +++ b/wcfsetup/install/files/acp/templates/header.tpl @@ -131,12 +131,53 @@ {if PACKAGE_ID}{@$__wcf->getUserProfileHandler()->getAvatar()->getImageTag(24)} {/if}{lang}wcf.user.userNote{/lang} + + {if PACKAGE_ID > 1} + + + {if $__wcf->session->getPermission('admin.system.package.canUpdatePackage') && $__wcf->getAvailableUpdates()} +
  • + {lang}wcf.acp.package.updates{/lang} {#$__wcf->getAvailableUpdates()|count} +
  • + {/if} + {/if} + + + {event name='topMenu'} diff --git a/wcfsetup/install/files/acp/templates/index.tpl b/wcfsetup/install/files/acp/templates/index.tpl index 406fbbd65a..cd7fe41e75 100644 --- a/wcfsetup/install/files/acp/templates/index.tpl +++ b/wcfsetup/install/files/acp/templates/index.tpl @@ -16,10 +16,6 @@

    {lang}wcf.acp.index.inRescueMode{/lang}

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

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

    -{/if} - {if $usersAwaitingApproval}

    {lang}wcf.acp.user.usersAwaitingApprovalInfo{/lang}

    {/if} diff --git a/wcfsetup/install/lang/de.xml b/wcfsetup/install/lang/de.xml index 1a9d30b1b3..047e6333fa 100644 --- a/wcfsetup/install/lang/de.xml +++ b/wcfsetup/install/lang/de.xml @@ -396,6 +396,10 @@ + + + + @@ -964,6 +968,7 @@ GmbH=Gesellschaft mit beschränkter Haftung]]> + @@ -1731,7 +1736,7 @@ Fehler sind beispielsweise: - + diff --git a/wcfsetup/install/lang/en.xml b/wcfsetup/install/lang/en.xml index 96d232e30c..02bd1e7f9e 100644 --- a/wcfsetup/install/lang/en.xml +++ b/wcfsetup/install/lang/en.xml @@ -395,6 +395,10 @@ Examples for medium ID detection: + + + + @@ -964,6 +968,7 @@ GmbH=Gesellschaft mit beschränkter Haftung]]> + @@ -1730,7 +1735,7 @@ Errors are: - + -- 2.20.1