View File | Revision Log | Show Annotations | Download File | View Changeset
/hippo/hippo-cms7/archetypes/trunk/website/src/main/resources/archetype-resources/site/src/main/webapp/WEB-INF/jsp/base/main/list.jsp
Revision: 44001
Committed: Mon Mar 17 15:05:29 2014 UTC (8 years, 8 months ago) by mdenburger
File size: 1791 byte(s)
Log Message:
ARCHE-339: merge page management branch

File Contents

# Content
1 #set( $symbol_dollar = '$' )
2 <%@ include file="/WEB-INF/jspf/htmlTags.jspf" %>
3 <%--@elvariable id="info" type="${symbol_dollar}{package}.componentsinfo.ListInfo"--%>
4 <%--@elvariable id="result" type="org.hippoecm.hst.content.beans.query.HstQueryResult"--%>
5
6 <c:choose>
7 <c:when test="${symbol_dollar}{empty info}">
8 <tag:pagenotfound/>
9 </c:when>
10 <c:otherwise>
11 <div class="${symbol_dollar}{fn:escapeXml(info.cssClass)}">
12 <h2>${symbol_dollar}{fn:escapeXml(info.title)}</h2>
13
14 <c:forEach var="item" items="${symbol_dollar}{result.hippoBeans}" varStatus="status">
15 <hst:link var="link" hippobean="${symbol_dollar}{item}"/>
16 <article class="well well-large" style="background-color:${symbol_dollar}{info.bgColor};">
17 <hst:cmseditlink hippobean="${symbol_dollar}{item}"/>
18 <c:if test="${symbol_dollar}{status.first and hst:isReadable(item, 'image.thumbnail')}">
19 <hst:link var="img" hippobean="${symbol_dollar}{item.image.thumbnail}"/>
20 <figure style="float:left;margin:0 10px 0 0;">
21 <img src="${symbol_dollar}{img}" title="${symbol_dollar}{fn:escapeXml(item.image.fileName)}"
22 alt="${symbol_dollar}{fn:escapeXml(item.image.fileName)}"/>
23 </figure>
24 </c:if>
25 <h3><a href="${symbol_dollar}{link}">${symbol_dollar}{fn:escapeXml(item.title)}</a></h3>
26 <c:if test="${symbol_dollar}{hst:isReadable(item, 'date.time')}">
27 <p class="badge badge-info">
28 <fmt:formatDate value="${symbol_dollar}{item.date.time}" type="both" dateStyle="medium" timeStyle="short"/>
29 </p>
30 </c:if>
31 <p>${symbol_dollar}{fn:escapeXml(item.summary)}</p>
32 </article>
33 </c:forEach>
34
35 </div>
36 </c:otherwise>
37 </c:choose>