View File | Revision Log | Show Annotations | Download File | View Changeset
/hippo/hippo-documentation/hst_docs/trunk/site/src/main/webapp/jsp/components/doctypes/alternative_list.jspx
Revision: 22104
Committed: Fri Mar 12 12:03:24 2010 UTC (9 years, 11 months ago) by rbijlsma
File size: 2815 byte(s)
Log Message:
HSTTWODOCS-199, HSTTWODOCS-274

File Contents

# Content
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 <c:when test='${not empty referenced.documentLink.shortDescription}'>
17 <a href='${link}'>${referenced.documentLink.shortDescription}</a>
18 <c:when test='${not empty document.shortDescription}'>
19 <a href='${link}'>${document.shortDescription}</a>
20 </c:when>
21 -->
22 <jsp:root
23 xmlns="http://www.w3.org/1999/xhtml"
24 xmlns:jsp="http://java.sun.com/JSP/Page"
25 xmlns:c="http://java.sun.com/jsp/jstl/core"
26 xmlns:x="http://java.sun.com/jsp/jstl/xml"
27 xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
28 xmlns:hst="http://www.hippoecm.org/jsp/hst/core"
29 version='2.0'
30 >
31 <jsp:output omit-xml-declaration="yes"/>
32
33 <jsp:directive.page contentType="text/html; charset=UTF-8" language="java"/>
34
35 <c:if test="${!empty document.altDocuments}" >
36 <div class='related'>
37 <h1 class='sectiontitle' title='Related documents to read instead of this one.'>Alternative</h1>
38 <ul>
39 <c:forEach var="referenced" items="${document.altDocuments}" varStatus="indexer">
40 <li>
41 <c:choose>
42 <c:when test="${not empty referenced.URL}">
43 <c:choose>
44 <c:when test='${! empty referenced.description}'>
45 <a class='external' href='${referenced.URL}'>${referenced.description}</a>
46 </c:when>
47 <c:otherwise>
48 <a class='external' href='${referenced.URL}'>Alternative document</a>
49 </c:otherwise>
50 </c:choose>
51 </c:when>
52 <c:when test="${not empty referenced.documentLink}">
53 <hst:link var="link" hippobean="${referenced.documentLink}"/>
54 <c:choose>
55 <c:when test='${not empty referenced.description}'>
56 <a href='${link}'>${referenced.description}</a>
57 </c:when>
58 <c:when test='${not empty referenced.documentLink.referencedBean.shortDescription}'>
59 <a href='${link}'><hst:html hippohtml="${referenced.documentLink.referencedBean.shortDescription}"/></a>
60 </c:when>
61 <c:otherwise>
62 <a href='${link}'>Alternative document</a>
63 </c:otherwise>
64 </c:choose>
65 </c:when>
66 <c:otherwise>
67 ${referenced.description}
68 </c:otherwise>
69 </c:choose>
70 </li>
71 </c:forEach>
72 </ul>
73 </div>
74 </c:if>
75 </jsp:root>
76