<%--
/**
 * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
 *
 * The contents of this file are subject to the terms of the Liferay Enterprise
 * Subscription License ("License"). You may not use this file except in
 * compliance with the License. You can obtain a copy of the License by
 * contacting Liferay, Inc. See the License for the specific language governing
 * permissions and limitations under the License, including but not limited to
 * distribution rights of the Software.
 *
 *
 *
 */
--%>

<liferay-ui:search-container
	emptyResultsMessage="<%= emptyResultsMessage %>"
	headerNames="file-name,size,action"
	id="pageAttachments"
	iteratorURL="<%= currentURLObj %>"
	total="<%= attachmentsFileEntriesCount %>"
>
	<liferay-ui:search-container-results
		results="<%= paginate ? ListUtil.subList(attachmentsFileEntries, searchContainer.getStart(), searchContainer.getEnd()) : attachmentsFileEntries %>"
	/>

	<liferay-ui:search-container-row
		className="com.liferay.portal.kernel.repository.model.FileEntry"
		escapedModel="<%= true %>"
		keyProperty="fileEntryId"
		modelVar="fileEntry"
		rowVar="row"
	>
		<liferay-ui:search-container-column-text
			cssClass="table-cell-expand table-cell-minw-200 table-title"
			href='<%= PortletFileRepositoryUtil.getDownloadPortletFileEntryURL(themeDisplay, fileEntry, "status=" + status) %>'
			name="file-name"
			value="<%= fileEntry.isInTrash() ? trashHelper.getOriginalTitle(fileEntry.getTitle()) : fileEntry.getTitle() %>"
		/>

		<liferay-ui:search-container-column-text
			cssClass="table-cell-expand table-cell-minw-100"
			name="size"
			value="<%= LanguageUtil.formatStorageSize(fileEntry.getSize(), locale) %>"
		/>

		<c:if test="<%= showPageAttachmentAction %>">
			<liferay-ui:search-container-column-jsp
				cssClass="entry-action table-cell-expand table-column-text-center"
				name="action"
				path="/wiki/page_attachment_action.jsp"
			/>
		</c:if>
	</liferay-ui:search-container-row>

	<liferay-ui:search-iterator
		markupView="lexicon"
		paginate="<%= paginate %>"
	/>
</liferay-ui:search-container>