main.jsp 5.93 KB
Newer Older
Matija Obreza's avatar
Matija Obreza committed
1
<%@include file="/WEB-INF/jsp/init.jsp"%>
Matija Obreza's avatar
Matija Obreza committed
2
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>
Matija Obreza's avatar
Matija Obreza committed
3
4
5

<html>
<head>
Matija Obreza's avatar
Matija Obreza committed
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
<title><sitemesh:write property="title" /></title>
<%@include file="/WEB-INF/jsp/head-init.jsp"%>
<meta charset="utf-8">
<%--Locked Compatible Mode for IE--%>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="description" content="">
<meta name="viewport" content="width=device-width">

<link type="text/css" href="/html/css/bootstrap.css" rel="stylesheet" />
<link type="text/css" href="/html/css/custom.css" rel="stylesheet" />

<script type="text/javascript" src="/html/js/jquery.min.js"></script>
<script type="text/javascript" src="/html/js/modernizr-2.6.2.min.js"></script>
<script type="text/javascript" src="/html/js/plugins.js"></script>
<script type="text/javascript" src="/html/js/jquery.validate.js"></script>
<script type="text/javascript" src="/html/js/custom.js"></script>


<link type="text/css" href="/html/css/jquery-ui.css" rel="stylesheet" />
<link type="text/css" href="/html/css/jquery.dataTables.css" rel="stylesheet" />

<%--Fallback for older browsers--%>
<script type="text/javascript" src="/html/js/json2.js"></script>

<script type="text/javascript" src="/html/js/globalize.js"></script>
<script type="text/javascript" src="/html/js/jquery-ui.min.js"></script>
<script type="text/javascript" src="/html/js/jquery.dataTables.js"></script>
<script type="text/javascript" src="/html/js/handlebars.js"></script>
<script type="text/javascript" src="/html/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/html/js/main.js"></script>

<sitemesh:write property="head" />
Matija Obreza's avatar
Matija Obreza committed
38
39
40
</head>

<body>
Matija Obreza's avatar
Stuff    
Matija Obreza committed
41
	<sec:authentication var="user" property="principal" />
Matija Obreza's avatar
Matija Obreza committed
42
43
44
45
46
47
48
49
50

	<div class="container">
		<div id="header">
			<div class="clearfix">
				<div class="pull-left">
					<a href="<c:url value="/" />"><img style="" src="<c:url value="/html/images/logo2.png" />" /></a>
				</div>
				<!--       <h4 class="pull-left"><spring:message code="sample.message.welcome"/></h4>        -->

Matija Obreza's avatar
Matija Obreza committed
51
				<div class="navbar pull-right">
Matija Obreza's avatar
Matija Obreza committed
52
53
54
55
56
57
					<div class="nav-collapse">
						<ul class="nav">
							<li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" title="<spring:message code="sample.message.change.locale"/>"> <spring:message code="sample.message.current.locale" /> <b class="caret"></b>
							</a>
								<ul class="dropdown-menu">
									<li><a href="?lang=en"><spring:message code="sample.message.locale.en" /></a></li>
Matija Obreza's avatar
Matija Obreza committed
58
									<li><a href="?lang=sl"><spring:message code="sample.message.locale.sl" /></a></li>
Matija Obreza's avatar
Matija Obreza committed
59
60
61
								</ul></li>
						</ul>
					</div>
Matija Obreza's avatar
Matija Obreza committed
62
				</div>
Matija Obreza's avatar
Matija Obreza committed
63

Matija Obreza's avatar
Matija Obreza committed
64
					<div class="navbar pull-right">
Matija Obreza's avatar
Matija Obreza committed
65
66
67
68
69
70
				<sec:authorize access="isAnonymous()">
				<div style="line-height: 20px; padding: 10px 15px;">
						<a href="<c:url value="/login" />">Login</a> or <a href="<c:url value="/registration" />"><spring:message code="user.create-new-account" /></a>
						</div>
				</sec:authorize>
				<sec:authorize access="isAuthenticated()">
Matija Obreza's avatar
Matija Obreza committed
71
72
73
74
						<ul class="nav">
							<li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" title="<spring:message code="sample.message.change.locale"/>"> You are <b>${user.username}</b> <b class="caret"></b>
							</a>
								<ul class="dropdown-menu">
Matija Obreza's avatar
Matija Obreza committed
75
76
77
								<sec:authorize access="hasRole('ADMINISTRATOR')">
									<li><a href="<c:url value="/admin/" />">Administation</a></li>					
								</sec:authorize>
Matija Obreza's avatar
Matija Obreza committed
78
79
80
81
82
									<li><a href="<c:url value="/profile" />"><spring:message code="user.pulldown.profile" /></a></li>
									<li><a href="<c:url value="/logout" />"><spring:message code="user.pulldown.logout" /></a></li>
								</ul></li>
						</ul>
				</sec:authorize>
Matija Obreza's avatar
Matija Obreza committed
83
					</div>
Matija Obreza's avatar
Matija Obreza committed
84
85
			</div>
		</div>
Matija Obreza's avatar
Matija Obreza committed
86

Matija Obreza's avatar
Matija Obreza committed
87
88
		<div id="nav-main" class="clearfix">
			<ul>
Matija Obreza's avatar
Matija Obreza committed
89
				<li><a href="<c:url value="/" />"><spring:message code="menu.home" /></a></li>
Matija Obreza's avatar
Matija Obreza committed
90
				<li><a href="<c:url value="/acn/" />"><spring:message code="menu.browse" /></a></li>
Matija Obreza's avatar
Matija Obreza committed
91
92
93
94
				<li><a href="<c:url value="/data/" />"><spring:message code="menu.datasets" /></a></li>
				<li><a href="<c:url value="/geo/" />"><spring:message code="menu.countries" /></a></li>
				<li><a href="<c:url value="/wiews/active" />"><spring:message code="menu.institutes" /></a></li>
				<li><a href="<c:url value="/sel/" />"><spring:message code="menu.my-list" /></a></li>
Matija Obreza's avatar
Matija Obreza committed
95
96
97
98
			</ul>
		</div>
		
		<div id="content" class="clearfix">
Matija Obreza's avatar
Matija Obreza committed
99

Matija Obreza's avatar
Matija Obreza committed
100
			<div id="dialog"></div>
Matija Obreza's avatar
Matija Obreza committed
101

Matija Obreza's avatar
Matija Obreza committed
102
103
104
105
106
			<div class="content-block clearfix">
				<sitemesh:write property="body" />
			</div>

			<!-- Processing time:
Matija Obreza's avatar
Matija Obreza committed
107
108
		<div class="footer clearfix" style="font-size: 80%"><spring:message code="page.rendertime" arguments="${springExecuteTime}" /></div>
		 -->
Matija Obreza's avatar
Matija Obreza committed
109
110
111
112
113
114
		</div>

		<div id="footer" class="clearfix">
			<div id="nav-foot" class="clearfix">
				<div class="pull-left">
					<ul>
Matija Obreza's avatar
Matija Obreza committed
115
116
117
118
119
						<li><a href="<c:url value="/content/about" />"><spring:message code="menu.about" /></a></li>
						<li><a href="<c:url value="/content/contact" />"><spring:message code="menu.contact" /></a></li>
						<li><a href="<c:url value="/content/disclaimer" />"><spring:message code="menu.disclaimer" /></a></li>
						<li><a href="<c:url value="/content/feedback" />"><spring:message code="menu.feedback" /></a></li>
						<li><a href="<c:url value="/content/help" />"><spring:message code="menu.help" /></a></li>
Matija Obreza's avatar
Matija Obreza committed
120
121
122
123
					</ul>
				</div>
				<div class="pull-right">
					<ul>
Matija Obreza's avatar
Matija Obreza committed
124
125
126
						<li><a href="<c:url value="/content/terms" />"><spring:message code="menu.terms" /></a></li>
						<li><a href="<c:url value="/content/copying" />"><spring:message code="menu.copying" /></a></li>
						<li><a href="<c:url value="/content/privacy" />"><spring:message code="menu.privacy" /></a></li>
Matija Obreza's avatar
Matija Obreza committed
127
128
129
130
131
132
133
134
135
136
					</ul>
				</div>
			</div>
			<div class="clearfix" id="copyright">
				<div class="pull-left">
					<a href="<c:url value="/" />"><img style="height: 2em; vertical-align: middle; position: relative; top: -0.3em" src="<c:url value="/html/images/logo2small.png" />" /></a>
					<spring:message code="footer.copyright-statement" />
				</div>
			</div>
		</div>
Matija Obreza's avatar
Matija Obreza committed
137
	</div>
Matija Obreza's avatar
Matija Obreza committed
138

Matija Obreza's avatar
Matija Obreza committed
139
140
</body>
</html>