<%--
/**
 * 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-column-text>
	<liferay-util:include page="/icon.jsp" servletContext="<%= application %>">
		<liferay-util:param name="iconURL" value='<%= PortalUtil.getPathContext(request) + "/images/icons.svg#modules" %>' />
	</liferay-util:include>
</liferay-ui:search-container-column-text>

<liferay-ui:search-container-column-text
	colspan="<%= 2 %>"
>

	<%
	Dictionary<String, String> headers = bundle.getHeaders(StringPool.BLANK);
	%>

	<h2 class="list-group-title">
		<c:choose>
			<c:when test="<%= bundle.getState() == BundleStateConstants.RESOLVED %>">
				<%= MarketplaceAppManagerUtil.getSearchContainerFieldText(headers.get(Constants.BUNDLE_NAME)) %>
			</c:when>
			<c:otherwise>
				<portlet:renderURL var="rowURL">
					<portlet:param name="mvcPath" value="/view_module.jsp" />
					<portlet:param name="app" value="<%= app %>" />
					<portlet:param name="symbolicName" value="<%= bundle.getSymbolicName() %>" />
					<portlet:param name="version" value="<%= String.valueOf(bundle.getVersion()) %>" />
				</portlet:renderURL>

				<a href="<%= HtmlUtil.escapeHREF(rowURL) %>">
					<%= MarketplaceAppManagerUtil.getSearchContainerFieldText(headers.get(Constants.BUNDLE_NAME)) %>
				</a>
			</c:otherwise>
		</c:choose>
	</h2>

	<p class="list-group-text">
		<%= MarketplaceAppManagerUtil.getSearchContainerFieldText(headers.get(Constants.BUNDLE_DESCRIPTION)) %>
	</p>

	<p class="list-group-text">
		<%= bundle.getSymbolicName() %>
	</p>

	<div class="additional-info list-group-subtext">
		<div class="additional-info-item">
			<strong>
				<liferay-ui:message key="version" />:
			</strong>

			<%= bundle.getVersion() %>
		</div>

		<div class="additional-info-item">
			<strong>
				<liferay-ui:message key="status" />:
			</strong>

			<liferay-ui:message key="<%= BundleStateConstants.getLabel(bundle.getState()) %>" />
		</div>
	</div>
</liferay-ui:search-container-column-text>

<liferay-ui:search-container-column-jsp
	path="/bundle_action.jsp"
/>