META-INF.resources.view_asset_categories.jsp Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of com.liferay.asset.categories.admin.web
Show all versions of com.liferay.asset.categories.admin.web
Liferay Asset Categories Admin Web
The newest version!
<%--
/**
* SPDX-FileCopyrightText: (c) 2023 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
--%>
<%@ include file="/init.jsp" %>
<%
AssetCategoriesManagementToolbarDisplayContext assetCategoriesManagementToolbarDisplayContext = new AssetCategoriesManagementToolbarDisplayContext(request, liferayPortletRequest, liferayPortletResponse, assetCategoriesDisplayContext);
AssetCategoryActionDropdownItemsProvider assetCategoryActionDropdownItemsProvider = new AssetCategoryActionDropdownItemsProvider(assetCategoriesDisplayContext, request, renderRequest, renderResponse);
%>
<%
List breadcrumbEntries = AssetCategoryUtil.getAssetCategoriesBreadcrumbEntries(assetCategoriesDisplayContext.getVocabulary(), assetCategoriesDisplayContext.getCategory(), request, renderResponse);
%>
<%
int subcategoriesCount = AssetCategoryLocalServiceUtil.getChildCategoriesCount(curCategory.getCategoryId());
row.setData(
HashMapBuilder.put(
"actions", assetCategoriesManagementToolbarDisplayContext.getAvailableActions(curCategory)
).build());
int fullCategoriesCount = AssetEntryAssetCategoryRelLocalServiceUtil.getAssetEntryAssetCategoryRelsCountByAssetCategoryId(curCategory.getCategoryId());
%>
<%= HtmlUtil.escape(curCategory.getTitle(locale)) %>
<%= HtmlUtil.stripHtml(curCategory.getDescription(locale)) %>
: <%= String.valueOf(fullCategoriesCount) %>
<%= HtmlUtil.escape(curCategory.getPath(locale, true)) %> > <%= HtmlUtil.escape(curCategory.getTitle(locale)) %>