From b22b7eae8532613b3ee84f84d4e036089b01047e Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Thu, 12 Jun 2014 00:08:14 +0200 Subject: [PATCH] Added ability to toggle recent activity filter --- .../templates/dashboardBoxRecentActivity.tpl | 2 ++ com.woltlab.wcf/userOption.xml | 5 ++++ wcfsetup/install/files/js/WCF.User.js | 29 +++++++++++++++++-- .../event/UserActivityEventAction.class.php | 16 ++++++++++ .../box/RecentActivityDashboardBox.class.php | 29 ++++++++++++------- wcfsetup/install/lang/de.xml | 2 ++ wcfsetup/install/lang/en.xml | 2 ++ 7 files changed, 73 insertions(+), 12 deletions(-) diff --git a/com.woltlab.wcf/templates/dashboardBoxRecentActivity.tpl b/com.woltlab.wcf/templates/dashboardBoxRecentActivity.tpl index 3b981ef57a..c4e0287030 100644 --- a/com.woltlab.wcf/templates/dashboardBoxRecentActivity.tpl +++ b/com.woltlab.wcf/templates/dashboardBoxRecentActivity.tpl @@ -1,6 +1,8 @@

{lang}wcf.user.recentActivity{/lang}

{if $filteredByFollowedUsers}

{lang}wcf.user.recentActivity.filteredByFollowedUsers{/lang}

{/if} + {* TODO: styling *} + {if $canFilterByFollowedUsers}{lang}wcf.user.recentActivity.scope.{if $filteredByFollowedUsers}all{else}followedUsers{/if}{/lang}{/if}
diff --git a/com.woltlab.wcf/userOption.xml b/com.woltlab.wcf/userOption.xml index 1edad995a0..98948aa4be 100644 --- a/com.woltlab.wcf/userOption.xml +++ b/com.woltlab.wcf/userOption.xml @@ -178,6 +178,11 @@ +