1 |
<?xml version="1.0" encoding="UTF-8"?> |
2 |
<!-- |
3 |
Copyright 2009 Hippo |
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" |
13 |
BASIS, 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 |
<jsp:root |
18 |
xmlns="http://www.w3.org/1999/xhtml" |
19 |
xmlns:jsp="http://java.sun.com/JSP/Page" |
20 |
xmlns:c="http://java.sun.com/jsp/jstl/core" |
21 |
xmlns:x="http://java.sun.com/jsp/jstl/xml" |
22 |
xmlns:fmt="http://java.sun.com/jsp/jstl/fmt" |
23 |
xmlns:hst="http://www.hippoecm.org/jsp/hst/core" |
24 |
version='2.0' |
25 |
> |
26 |
|
27 |
<jsp:output omit-xml-declaration="yes"/> |
28 |
|
29 |
<jsp:directive.page contentType="text/html; charset=UTF-8" language="java"/> |
30 |
|
31 |
<c:if test="${!empty document.sections}" > |
32 |
<div class='section'> |
33 |
<c:forEach var="part" items="${document.sections}" varStatus="indexer"> |
34 |
<h1 class='sectiontitle'>${part.title}</h1> |
35 |
|
36 |
<c:if test='${! empty part.intro}'> |
37 |
<hst:html hippohtml="${part.intro}"/> |
38 |
</c:if> |
39 |
|
40 |
<c:if test="${!empty part.screenshots}" > |
41 |
<c:forEach var="screenshot" items="${part.screenshots}" varStatus="rowCounter"> |
42 |
|
43 |
<script type="text/javascript"> |
44 |
<c:if test="${!empty screenshot.leftpx}" >leftpx=${screenshot.leftpx};</c:if> |
45 |
<c:if test="${!empty screenshot.heightpx}" >heightpx=${screenshot.heightpx};</c:if> |
46 |
<c:if test="${!empty screenshot.widthpx}" >widthpx=${screenshot.widthpx};</c:if> |
47 |
<c:if test="${!empty screenshot.toppx}" >toppx=${screenshot.toppx};</c:if> |
48 |
<c:if test="${!empty screenshot.bottompx}" >bottompx=${screenshot.bottompx};</c:if> |
49 |
</script> |
50 |
<div class="group"> |
51 |
<div id="screenshot"> <!-- TODO Fails for multiple screenshots! (was no need for it yet). The id is for the javascript. But you may have several screenshots in a page, so an id should not be used. --> |
52 |
<div> |
53 |
<hst:link var="imagelink" hippobean="${screenshot.imageLink}"/> |
54 |
<img src="${imagelink}/${screenshot.imageLink.referencedBean.name}/hippogallery%3Apicture" alt="${screenshot.alt}" /> |
55 |
</div> |
56 |
</div> |
57 |
<hst:html hippohtml="${screenshot.caption}"/> |
58 |
</div> |
59 |
</c:forEach> |
60 |
</c:if> |
61 |
|
62 |
<c:if test="${!empty part.steps}" > |
63 |
<table class='steps' summary='First column= step number, second column= action icon, third column= action description'> |
64 |
<c:forEach var="step" items="${part.steps}" varStatus="rowCounter"> |
65 |
<tr> |
66 |
<td class="rowcount">${rowCounter.count}</td> |
67 |
<td>${step.stepName}</td> |
68 |
<td><span class='${step.category}'> </span></td> |
69 |
<td><hst:html hippohtml="${step.explanation}"/></td> |
70 |
</tr> |
71 |
</c:forEach> |
72 |
</table> |
73 |
</c:if> |
74 |
|
75 |
|
76 |
<!-- TODO <jsp:include page="StepComponent.jspx" /> --> |
77 |
|
78 |
<c:if test='${! empty part.closing}'> |
79 |
<hst:html hippohtml="${part.closing}"/> |
80 |
</c:if> |
81 |
|
82 |
</c:forEach> |
83 |
</div> |
84 |
</c:if> |
85 |
|
86 |
</jsp:root> |
87 |
|