From: Marcel Werk Date: Mon, 16 Feb 2015 15:10:42 +0000 (+0100) Subject: Added missing title links in dashboard boxes X-Git-Tag: 2.1.0_RC_1~4 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=100043e57f3a5baf8a527c5471e3b544e8dc2b64;p=GitHub%2FWoltLab%2FWCF.git Added missing title links in dashboard boxes --- diff --git a/wcfsetup/install/files/lib/system/dashboard/box/MostActiveMembersDashboardBox.class.php b/wcfsetup/install/files/lib/system/dashboard/box/MostActiveMembersDashboardBox.class.php index b578e2e02c..1f15bce54e 100644 --- a/wcfsetup/install/files/lib/system/dashboard/box/MostActiveMembersDashboardBox.class.php +++ b/wcfsetup/install/files/lib/system/dashboard/box/MostActiveMembersDashboardBox.class.php @@ -4,6 +4,7 @@ use wcf\data\dashboard\box\DashboardBox; use wcf\data\user\UserProfileList; use wcf\page\IPage; use wcf\system\cache\builder\MostActiveMembersCacheBuilder; +use wcf\system\request\LinkHandler; use wcf\system\WCF; /** @@ -48,6 +49,9 @@ class MostActiveMembersDashboardBox extends AbstractSidebarDashboardBox { protected function render() { if ($this->userProfileList == null) return ''; + if (MODULE_MEMBERS_LIST) { + $this->titleLink = LinkHandler::getInstance()->getLink('MembersList', array(), 'sortField=activityPoints&sortOrder=DESC'); + } WCF::getTPL()->assign(array( 'mostActiveMembers' => $this->userProfileList )); diff --git a/wcfsetup/install/files/lib/system/dashboard/box/MostLikedMembersDashboardBox.class.php b/wcfsetup/install/files/lib/system/dashboard/box/MostLikedMembersDashboardBox.class.php index dc60f3d816..2ff9806352 100644 --- a/wcfsetup/install/files/lib/system/dashboard/box/MostLikedMembersDashboardBox.class.php +++ b/wcfsetup/install/files/lib/system/dashboard/box/MostLikedMembersDashboardBox.class.php @@ -4,6 +4,7 @@ use wcf\data\dashboard\box\DashboardBox; use wcf\data\user\UserProfileList; use wcf\page\IPage; use wcf\system\cache\builder\MostLikedMembersCacheBuilder; +use wcf\system\request\LinkHandler; use wcf\system\WCF; /** @@ -48,6 +49,9 @@ class MostLikedMembersDashboardBox extends AbstractSidebarDashboardBox { protected function render() { if ($this->userProfileList == null) return ''; + if (MODULE_MEMBERS_LIST) { + $this->titleLink = LinkHandler::getInstance()->getLink('MembersList', array(), 'sortField=likesReceived&sortOrder=DESC'); + } WCF::getTPL()->assign(array( 'mostLikedMembers' => $this->userProfileList )); diff --git a/wcfsetup/install/files/lib/system/dashboard/box/NewestMembersDashboardBox.class.php b/wcfsetup/install/files/lib/system/dashboard/box/NewestMembersDashboardBox.class.php index 267f1bd8c3..6783795113 100644 --- a/wcfsetup/install/files/lib/system/dashboard/box/NewestMembersDashboardBox.class.php +++ b/wcfsetup/install/files/lib/system/dashboard/box/NewestMembersDashboardBox.class.php @@ -4,6 +4,7 @@ use wcf\data\dashboard\box\DashboardBox; use wcf\data\user\UserProfileList; use wcf\page\IPage; use wcf\system\cache\builder\NewestMembersCacheBuilder; +use wcf\system\request\LinkHandler; use wcf\system\WCF; /** @@ -48,6 +49,9 @@ class NewestMembersDashboardBox extends AbstractSidebarDashboardBox { protected function render() { if ($this->userProfileList == null) return ''; + if (MODULE_MEMBERS_LIST) { + $this->titleLink = LinkHandler::getInstance()->getLink('MembersList', array(), 'sortField=registrationDate&sortOrder=DESC'); + } WCF::getTPL()->assign(array( 'newestMembers' => $this->userProfileList )); diff --git a/wcfsetup/install/files/lib/system/dashboard/box/RecentActivitySidebarDashboardBox.class.php b/wcfsetup/install/files/lib/system/dashboard/box/RecentActivitySidebarDashboardBox.class.php index 3ea8343198..bbfab86dcf 100644 --- a/wcfsetup/install/files/lib/system/dashboard/box/RecentActivitySidebarDashboardBox.class.php +++ b/wcfsetup/install/files/lib/system/dashboard/box/RecentActivitySidebarDashboardBox.class.php @@ -4,6 +4,7 @@ use wcf\data\dashboard\box\DashboardBox; use wcf\data\user\activity\event\ViewableUserActivityEventList; use wcf\page\IPage; use wcf\system\user\activity\event\UserActivityEventHandler; +use wcf\system\request\LinkHandler; use wcf\system\WCF; /** @@ -44,6 +45,7 @@ class RecentActivitySidebarDashboardBox extends AbstractSidebarDashboardBox { */ protected function render() { if (count($this->eventList)) { + $this->titleLink = LinkHandler::getInstance()->getLink('RecentActivityList'); WCF::getTPL()->assign(array( 'eventList' => $this->eventList ));