-
Notifications
You must be signed in to change notification settings - Fork 61
/
template.xhtml
77 lines (73 loc) · 3.56 KB
/
template.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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<f:view xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:a="http://richfaces.org/a4j"
xmlns:gluufn="http://www.gluu.org/jsf/functions"
contentType="text/html" locale="#{language.localeCode}">
<h:head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>#{organizationService.organization.organizationTitle}</title>
<script type="text/javascript">
if (top != self)
top.location.href = self.document.location;
if (parent != self)
top.location.href = location.href;
if (top.frames.length != 0)
top.location.href = self.document.location;
if (window != window.top)
top.location.href = location.href;
</script>
<link rel="shortcut icon" href="#{request.contextPath}/servlet/favicon?v=#{faviconImageServlet.faviconTimestamp}"/>
<link rel="icon" href="#{request.contextPath}/servlet/favicon?v=#{faviconImageServlet.faviconTimestamp}"/>
<link type="text/css" rel="stylesheet" href="#{oxTrustConfigurationService.cssLocation}/theme.ecss" />
<link type="text/css" rel="stylesheet" href="#{oxTrustConfigurationService.cssLocation}/theme.css" />
<link type="text/css" rel="stylesheet" href="#{oxTrustConfigurationService.cssLocation}/site.css" />
<link type="text/css" rel="stylesheet" href="#{oxTrustConfigurationService.cssLocation}/../stylesheets/styles.css" />
<script type="text/javascript" src="#{oxTrustConfigurationService.jsLocation}/gluuCommon.js"></script>
<h:outputScript name="jquery.js"/>
<h:outputScript name="bootstrap.js"/>
<ui:insert name="head"/>
<ui:param name="themeColor" value="#{organizationService.organization.themeColor}" />
<ui:fragment rendered="#{not empty themeColor}">
<style type="text/css">
.rf-tb-itm, .rf-tb-emp{
height: 33px;
background-color: #{gluufn:getColor(themeColor, "00ff00")}
background-image: none;
}
</style>
</ui:fragment>
</h:head>
<h:body>
<img src="#{request.contextPath}/servlet/logo" alt="logo" id="logo"/>
<h:form>
<ui:include src="menu.xhtml">
<ui:param name="projectName" value="oxTrust"/>
</ui:include>
</h:form>
<div class="#{not isLogin?'body':'loginBody'}">
<div class="container">
<div class="row">
<div class="col-sm-12 col-md-8 col-sm-offset-0 col-md-offset-2">
<h:messages id="messages" globalOnly="true" styleClass="message"
errorClass="errormsg" infoClass="infomsg" warnClass="warnmsg"
rendered="#{showGlobalMessages != 'false'}"/>
<ui:insert name="body"/>
</div>
</div>
</div>
</div>
<ui:fragment rendered="#{not isLogin}">
<div class="footer">
<p>Copyright <a href="http://www.gluu.org">Gluu</a> All rights reserved.</p>
</div>
</ui:fragment>
<div class="footer">
</div>
</h:body>
</f:view>
</html>