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