-
Notifications
You must be signed in to change notification settings - Fork 17
/
layout.xhtml
121 lines (112 loc) · 5.43 KB
/
layout.xhtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<!--
- 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>