From: Alexander Ebert Date: Mon, 23 May 2022 15:23:28 +0000 (+0200) Subject: Moved the notification list into the global space X-Git-Tag: 5.5.0_Beta_4~25^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e43fa637ff4862a1e2ff355e35691bdeee74722e;p=GitHub%2FWoltLab%2FWCF.git Moved the notification list into the global space The notification list was placed in the user menu a long time ago, but never really fitted in there. The link was already (and continues to be) reachable through the drop-down menu, removing the need of an additional location. Moving the notification list into the global page space makes more sense and aligns with similar lists such as the conversations. --- diff --git a/com.woltlab.wcf/page.xml b/com.woltlab.wcf/page.xml index 12e29354bb..466ead8cad 100644 --- a/com.woltlab.wcf/page.xml +++ b/com.woltlab.wcf/page.xml @@ -431,7 +431,6 @@ Benachrichtigungen Notifications 1 - com.woltlab.wcf.AccountManagement Notifications @@ -877,4 +876,8 @@ E-Mail: [E-Mail-Adresse der verantwortlichen Stelle]


Verantwort + + + + diff --git a/com.woltlab.wcf/templates/notificationList.tpl b/com.woltlab.wcf/templates/notificationList.tpl index 62cd9904a6..8d170328ec 100644 --- a/com.woltlab.wcf/templates/notificationList.tpl +++ b/com.woltlab.wcf/templates/notificationList.tpl @@ -1,27 +1,9 @@ -{capture assign='contentHeader'} -

-
-

{$__wcf->getActivePage()->getTitle()} {#$__wcf->getUserNotificationHandler()->countAllNotifications()}

-
- - {hascontent} - - {/hascontent} -
-{/capture} +{capture assign='contentTitleBadge'}{#$__wcf->getUserNotificationHandler()->countAllNotifications()}{/capture} {capture assign='headContent'} {/capture} -{include file='userMenuSidebar'} - {capture assign='contentInteractionPagination'} {pages print=true assign=pagesLinks controller='NotificationList' link="pageNo=%d"} {/capture} diff --git a/com.woltlab.wcf/userMenu.xml b/com.woltlab.wcf/userMenu.xml index 960dc94f4e..b85053cf66 100644 --- a/com.woltlab.wcf/userMenu.xml +++ b/com.woltlab.wcf/userMenu.xml @@ -50,20 +50,18 @@ 3 fa-globe - - wcf\page\NotificationListPage - wcf.user.menu.community - 1 - wcf\page\FollowingPage wcf.user.menu.community - 2 + 1 wcf\page\IgnoredUsersPage wcf.user.menu.community - 3 + 2 + + + diff --git a/wcfsetup/install/files/lib/page/NotificationListPage.class.php b/wcfsetup/install/files/lib/page/NotificationListPage.class.php index ef1278d19b..66646e7915 100644 --- a/wcfsetup/install/files/lib/page/NotificationListPage.class.php +++ b/wcfsetup/install/files/lib/page/NotificationListPage.class.php @@ -2,7 +2,6 @@ namespace wcf\page; -use wcf\system\menu\user\UserMenu; use wcf\system\user\notification\UserNotificationHandler; use wcf\system\WCF; @@ -74,15 +73,4 @@ class NotificationListPage extends MultipleLinkPage 'notifications' => $this->notifications, ]); } - - /** - * @inheritDoc - */ - public function show() - { - // set active tab - UserMenu::getInstance()->setActiveMenuItem('wcf.user.menu.community.notification'); - - parent::show(); - } }