Permalink
Fetching contributors…
Cannot retrieve contributors at this time
121 lines (112 sloc) 5.43 KB
<!--
- Copyright 2012 OmniFaces.
-
- Licensed 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.
-->
<!--
The following application wide constants are available via this template:
* #{_omniFacesVersion}: The currently running OmniFaces version, without "SNAPSHOT" suffix if any.
* #{_apiURL}: The version-specific URL to API documentation at "http://omnifaces.org/docs/javadoc/<version>/".
* #{_vdlURL}: The version-specific URL to VDL documentation at "http://omnifaces.org/docs/vdldoc/<version>/".
* #{_srcURL}: The version-specific URL to source code at "https://github.com/omnifaces/omnifaces/blob/<version>/src/".
-->
<!DOCTYPE html>
<html lang="en"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
xmlns:fn="http://xmlns.jcp.org/jsp/jstl/functions"
xmlns:p="http://primefaces.org/ui"
xmlns:o="http://omnifaces.org/ui"
xmlns:of="http://omnifaces.org/functions"
>
<c:set var="_omniFacesVersion" value="#{app.omniFacesVersion.split('\\-')[0]}" scope="application" />
<c:set var="_apiURL" value="http://omnifaces.org/docs/javadoc/#{app.snapshot ? 'current' : app.omniFacesVersion.substring(0, 3)}/" scope="application" />
<c:set var="_vdlURL" value="http://omnifaces.org/docs/vdldoc/#{app.snapshot ? 'current' : app.omniFacesVersion.substring(0, 3)}/" scope="application" />
<c:set var="_srcURL" value="https://github.com/omnifaces/omnifaces/blob/#{app.snapshot ? 'develop' : app.omniFacesVersion}/src/main/java/" scope="application" />
<c:set var="_jsURL" value="https://github.com/omnifaces/omnifaces/blob/#{app.snapshot ? 'develop' : app.omniFacesVersion}/src/main/resources/META-INF/resources/omnifaces/" scope="application" />
<ui:insert name="meta"/>
<h:head id="head">
<title><ui:insert name="title">OmniFaces Showcase</ui:insert></title>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<meta name="viewport" content="width=device-width,maximum-scale=2" />
<link rel="shortcut icon" href="#{request.contextPath}/favicon.ico?1" />
</h:head>
<h:body>
<h:outputStylesheet library="layout" name="css/layout.css" />
<h:outputScript library="layout" name="js/functions.js" target="head" />
<div id="header-wrapper">
<div id="header" class="wrapped">
<label id="logo" for="hamburger">
<h:graphicImage library="layout" name="img/OmniFaces-logo-90x90-white.png" alt="logo" width="100" height="100" />
</label>
<h1>OmniFaces Showcase <h:outputText value="SNAPSHOT" styleClass="snapshot" rendered="#{app.snapshot}" /></h1>
<h2>To make JSF life easier</h2>
</div>
</div>
<div id="content-wrapper">
<div class="wrapped ui-helper-clearfix">
<input type="checkbox" id="hamburger" class="stateless" autocomplete="off" />
<p:panel id="menu">
<p:panel id="panel" header="omnifaces">
<ul>
<li><a href="#{request.contextPath}/" class="#{view.viewId == '/index.xhtml' ? 'active' : ''}">What is OmniFaces?</a></li>
<li><a href="http://omnifaces.org">Project homepage</a></li>
<li><a href="#{_apiURL}">API documentation</a></li>
<li><a href="#{_vdlURL}">VDL documentation</a></li>
<li><a href="#{request.contextPath}/whatsnew" class="#{view.viewId == '/whatsnew.xhtml' ? 'active' : ''}">What's new in OmniFaces #{_omniFacesVersion}?</a></li>
</ul>
</p:panel>
<o:tree id="menu_tree" value="#{app.menu}" varNode="_page">
<o:treeNode level="0">
<o:treeNodeItem>
<p:panel id="panel" header="#{_page.title}">
<o:treeInsertChildren />
</p:panel>
</o:treeNodeItem>
</o:treeNode>
<o:treeNode>
<ul>
<o:treeNodeItem>
<li><h:link value="#{_page.title}" outcome="#{_page.viewId}" styleClass="code#{_page == page ? ' active' : ''}" /></li>
</o:treeNodeItem>
</ul>
</o:treeNode>
</o:tree>
</p:panel>
<p:panel id="content" styleClass="wrapped">
<h2 id="contentTitle"><ui:insert name="contentTitle">#{page.title}</ui:insert></h2>
<ui:insert name="content" />
</p:panel>
</div>
</div>
<div id="footer-wrapper">
<p:panel id="footer" styleClass="wrapped">
<h3>Powered by</h3>
<p>
#{app.facesVersion}<br/>
OmniFaces #{app.omniFacesVersion}<br/>
PrimeFaces #{app.primeFacesVersion}<br/>
#{app.serverVersion}<br/>
</p>
<p>Server (re)started at #{of:formatDateWithTimezone(startup, 'd MMM yyyy HH:mm', 'UTC')} UTC</p>
</p:panel>
</div>
<h:outputScript target="body">
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-29559297-3', 'auto');ga('send', 'pageview');
</h:outputScript>
</h:body>
</html>