View File | Revision Log | Show Annotations | Download File | View Changeset
/hippo/hippo-demos/hippo-go-green/branches/Branch-GOGREEN-v1_01_xx/site/src/main/webapp/jsp/mobile/events/overview.jsp
Revision: 24246
Committed: Thu Oct 7 15:26:01 2010 UTC (9 years, 11 months ago) by nvankampenhout
File size: 2764 byte(s)
Log Message:
GOGREEN-57 Fixed events overviews in mobile site

File Contents

# Content
1 <%--
2
3 Copyright (C) 2010 Hippo B.V.
4
5 Licensed under the Apache License, Version 2.0 (the "License");
6 you may not use this file except in compliance with the License.
7 You may obtain a copy of the License at
8
9 http://www.apache.org/licenses/LICENSE-2.0
10
11 Unless required by applicable law or agreed to in writing, software
12 distributed under the License is distributed on an "AS IS" BASIS,
13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 See the License for the specific language governing permissions and
15 limitations under the License.
16
17 --%>
18
19 <%@include file="../../includes/tags.jspf" %>
20
21 <hippo-gogreen:title title="Events"/>
22
23 <!-- body / main -->
24 <div id="bd">
25
26 <!-- search results -->
27 <div id="content">
28 <div id="events" class="results">
29
30 <c:forEach items="${docs.items}" var="item">
31 <ul class="event-item">
32 <li class="full-link"><a href="<hst:link hippobean="${item}"/>"></a></li>
33 <li class="calendar"><img src="<hst:link path="/images/mobile/bg-calendar.png"/>"/>
34 <span class="month"><fmt:formatDate value="${item.date.time}" pattern="MMM"/></span>
35 <span class="day"><fmt:formatDate value="${item.date.time}" pattern="dd"/></span>
36 </li>
37 <c:url var="linkUrl" value="http://maps.google.com/?q=${item.location.street} ${item.location.number}, ${item.location.city} ${item.location.postalCode} ${item.location.province}"/>
38 <c:url var="imageUrl" value="http://maps.google.com/maps/api/staticmap?&zoom=10&size=150x100&maptype=roadmap&markers=color:green|${item.location.street} ${item.location.number}, ${item.location.city} ${item.location.postalCode} ${item.location.province}&sensor=true"/>
39 <li class="gmaps"><a target="_blank" href="${linkUrl}">
40 <img src="${imageUrl}"/>
41 </a></li>
42 <li class="title"><a href="<hst:link hippobean="${item}"/>">${item.title}</a></li>
43 </ul>
44 </c:forEach>
45
46 <c:if test="${count > pageSize}">
47 <div id="show-more">
48 <a href="?pageSize=${pageSize + 25}">
49 <c:choose>
50 <c:when test="${count - pageSize > 25}">Show 25 more...</c:when>
51 <c:otherwise>Show ${count - pageSize} more...</c:otherwise>
52 </c:choose>
53 </a>
54 </div>
55 </c:if>
56 </div>
57 <div id="extra">
58 <a href="#linktojson-forlayar">View events in Layar</a>
59 </div>
60
61 </div>