blob: ea8427fe30b5acfec7dbeaec544591f1e2a15637 [file] [log] [blame]
<!DOCTYPE html>
<!--~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~ Licensed to the Apache Software Foundation (ASF) under one
~ or more contributor license agreements. See the NOTICE file
~ distributed with this work for additional information
~ regarding copyright ownership. The ASF licenses this file
~ to you under the Apache License, Version 2.0 (the
~ "License"); you may not use this file except in compliance
~ with the License. You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing,
~ software distributed under the License is distributed on an
~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
~ KIND, either express or implied. See the License for the
~ specific language governing permissions and limitations
~ under the License.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~-->
<html data-sly-use.collection="org.apache.sling.hapi.sightly.TypesCollectionView"
data-sly-use.hapicollection="${'org.apache.sling.hapi.sightly.HApiUse' @type='org.apache.sling.hapi.common.hapi_typescollection'}"
lang="${type.lang}">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap -->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<title>${collection.title}</title>
</head>
<body>
<div class="container">
<h1 data-sly-attribute="${hapicollection.itemprop.hapi_name}">${collection.title}</h1>
<div>
<p data-sly-attribute="${hapicollection.itemprop.hapi_description}">${collection.description}</p>
</div>
<h3>Types: </h3>
<table class="table" data-sly-test.types="${collection.types}">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody data-sly-list.type="${collection.types}">
<tr data-sly-attribute="${hapicollection.itemprop.hapi_type}"
data-sly-use.hapi_type="${'org.apache.sling.hapi.sightly.HApiUse' @type=hapicollection.proptype.hapi_type}">
<td>
<a rel="hapi_type" data-sly-attribute="${hapi_type.itemprop.hapi_url}" href="${type.url}">
<span data-sly-attribute="${hapi_type.itemprop.hapi_name}">${type.fqdn}</span>
</a>
</td>
<td data-sly-attribute="${hapi_type.itemprop.hapi_description}">${type.description}</td>
</tr>
</tbody>
</table>
<div data-sly-test="${!types}">None</div>
</div>
</body>
</html>