<%-- /** * Copyright (c) 2000-present Liferay, Inc. All rights reserved. * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any later version. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more * details. */ --%> <%@ include file="/init.jsp" %> <% boolean actionable = ParamUtil.getBoolean(request, "actionable"); %>
">
var notificationsCount = '.non-actionable .count'; if (<%= actionable %>) { notificationsCount = '.actionable .count' } var notificationsList = new Liferay.NotificationsList( { actionable: <%= actionable %>, baseActionURL: '<%= PortletURLFactoryUtil.create(request, portletDisplay.getId(), themeDisplay.getPlid(), PortletRequest.ACTION_PHASE) %>', baseRenderURL: '<%= PortletURLFactoryUtil.create(request, portletDisplay.getId(), themeDisplay.getPlid(), PortletRequest.RENDER_PHASE) %>', baseResourceURL: '<%= PortletURLFactoryUtil.create(request, portletDisplay.getId(), themeDisplay.getPlid(), PortletRequest.RESOURCE_PHASE) %>', delta: <%= fullViewDelta %>, fullView: <%= true %>, markAllAsReadNode: '.user-notifications-list .mark-all-as-read', namespace: '', nextPageNode: '.pagination .next', notificationsContainer: '.notifications-portlet .user-notifications-container', notificationsCount: notificationsCount, notificationsNode: '.user-notifications-list .user-notifications', paginationInfoNode: '.pagination .page-info', previousPageNode: '.pagination .previous', portletKey: '<%= portletDisplay.getId() %>', start: 0 } ); new Liferay.Notifications( { baseRenderURL: '<%= PortletURLFactoryUtil.create(request, portletDisplay.getId(), themeDisplay.getPlid(), PortletRequest.RENDER_PHASE) %>', notificationsList: notificationsList } )