View File | Revision Log | Show Annotations | Download File | View Changeset
/hippo/hippo-demos/restyling/trunk/site/src/main/webapp/WEB-INF/jsp/base/main/list.jsp
Revision: 46769
Committed: Wed Oct 15 14:50:55 2014 UTC (7 years, 7 months ago) by mdenburger
File size: 1492 byte(s)
Log Message:
CMS7-8371: initial commit of restyling demo using archetype revision 46742 (try #2)

File Contents

# Content
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>

Properties

Name Value
svn:eol-style native
svn:keywords Id