META-INF.resources.message_boards_admin.view_banned_users.jsp Maven / Gradle / Ivy
<%--
/**
* 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="/message_boards/init.jsp" %>
<%
PortletURL portletURL = renderResponse.createRenderURL();
portletURL.setParameter("mvcRenderCommandName", "/message_boards/view_banned_users");
%>
<%
String displayStyle = ParamUtil.getString(request, "displayStyle");
if (Validator.isNull(displayStyle)) {
displayStyle = portalPreferences.getValue(MBPortletKeys.MESSAGE_BOARDS, "banned-users-display-style", "descriptive");
}
else {
portalPreferences.setValue(MBPortletKeys.MESSAGE_BOARDS, "banned-users-display-style", displayStyle);
request.setAttribute(WebKeys.SINGLE_PAGE_APPLICATION_CLEAR_CACHE, Boolean.TRUE);
}
int totalBannedUsers = MBBanLocalServiceUtil.getBansCount(scopeGroupId);
%>
<%
PortletURL displayStyleURL = renderResponse.createRenderURL();
displayStyleURL.setParameter("mvcRenderCommandName", "/message_boards/view_banned_users");
%>
<%
Date createDate = ban.getCreateDate();
String modifiedDateDescription = LanguageUtil.getTimeDescription(request, System.currentTimeMillis() - createDate.getTime(), true);
%>
<%= HtmlUtil.escape(PortalUtil.getUserName(ban.getBanUserId(), StringPool.BLANK)) %>
<%= dateFormatDateTime.format(MBUtil.getUnbanDate(ban, PropsValues.MESSAGE_BOARDS_EXPIRE_BAN_INTERVAL)) %>
<%
PortalUtil.setPageSubtitle(LanguageUtil.get(request, "banned-users"), request);
PortalUtil.addPortletBreadcrumbEntry(request, LanguageUtil.get(request, TextFormatter.format("banned-users", TextFormatter.O)), portletURL.toString());
%>
function unbanUser() {
var form = AUI.$(document. fm);
form.attr('method', 'post');
form.fm('<%= Constants.CMD %>').val('unban');
submitForm(form, ' ');
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy