#applyDecorator("root") #decoratorParam("context" "profile") #decoratorParam("mode" "edit-notifications-profile") #decoratorParam("helper" $helper) $action.resetPagination() ## to reset the pagination on non-ajax calls to the page #if(!$darkFeatures.isDarkFeatureEnabled('react.ui'))
#set ($pageNotifications = $action.paginationSupport.page) #set ($spaceNotifications = $helper.action.spaceNotificationsForUser) #if ($pageNotifications.size() == 0 && $spaceNotifications.size() == 0)

$action.getText('not.watching.anything')


#end ##$action.getText('space.watches') #if ($spaceNotifications.size() > 0) #foreach ($notification in $spaceNotifications) #end
$action.getText('space.watches')
$webwork.htmlEncode($notification.space.name) #if ($notification.type) ($i18n.getText('space.watching.blogs.only')) #end
#else
$action.getText('space.watch.instruction')
#end
#if ($pageNotifications.size() > 0) #foreach ($notification in $pageNotifications) #end
$action.getText('page.watches')
#contentLink($notification.page)
#pagination($action.paginationSupport "${req.contextPath}/users/viewnotifications.action?") #else
$i18n.getText('page.watch.instruction')
#end
$i18n.getText("notifications.preferences.desc")
## watches #else ## TODO: Remove this container once the parent container is converted to React. ## NOTE: This container should not be targetted with CSS or test rules.
## TODO: Convert to a Java/REST API. #set ($pageNotifications = $action.paginationSupport.page) #set ($spaceNotifications = $helper.action.spaceNotificationsForUser) #end #end