menu.jsp 9.54 KB
Newer Older
1
<%@ include file="/WEB-INF/jsp/init.jsp" %>
2

Matija Obreza's avatar
Matija Obreza committed
3
4
5
6
<!-- Fixed navbar -->
<nav class="navbar navbar-default navbar-inverse navbar-fixed-top">
	<div class="container-fluid">
		<div class="navbar-header">
Matija Obreza's avatar
Matija Obreza committed
7
			<button type="button" class="navbar-toggle collapsed pull-left" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
Matija Obreza's avatar
Matija Obreza committed
8
9
10
11
12
				<span class="sr-only">Toggle navigation</span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
			</button>
Matija Obreza's avatar
Matija Obreza committed
13
			<a class="navbar-brand nav-logo clearfix" href="<c:url value="/welcome" />"><img src="<c:url value="/html/1/images/GENESYS-ICON.svg" />" /><img src="<c:url value="/html/1/images/GENESYS-LOGO.svg" />" /></a>
Matija Obreza's avatar
Matija Obreza committed
14
15
		</div>
		<div id="navbar" class="collapse navbar-collapse">
Matija Obreza's avatar
Matija Obreza committed
16
17
			<div class="col-md-6 no-space">
				<div class="navbar-header">
Matija Obreza's avatar
Matija Obreza committed
18
					<button type="button" class="navbar-toggle collapsed pull-left" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
Matija Obreza's avatar
Matija Obreza committed
19
20
21
22
23
						<span class="sr-only">Toggle navigation</span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
					</button>
Matija Obreza's avatar
Matija Obreza committed
24
					<a class="navbar-brand nav-logo clearfix" href="<c:url value="/welcome" />"><img src="/html/1/images/GENESYS-ICON.svg" /><img src="/html/1/images/GENESYS-LOGO.svg" /></a>
Matija Obreza's avatar
Matija Obreza committed
25
26
27
				</div>

				<ul class="nav navbar-nav nav-menu">
Taisiya Glushko's avatar
Taisiya Glushko committed
28
					<li class="active pull-left">
Matija Obreza's avatar
Matija Obreza committed
29
						<a href="<c:url value="/welcome" />" title="<spring:message code="menu.home" />"> <spring:message code="menu.home" />
Matija Obreza's avatar
Matija Obreza committed
30
31
						</a>
					</li>
Taisiya Glushko's avatar
Taisiya Glushko committed
32
					<li class="dropdown pull-left">
Matija Obreza's avatar
Matija Obreza committed
33
34
35
						<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"> <spring:message code="menu.about" /> <span class="caret"></span>
						</a>
						<ul class="dropdown-menu">
Taisiya Glushko's avatar
Taisiya Glushko committed
36
							<li class="pull-left">
Matija Obreza's avatar
Matija Obreza committed
37
								<a href="<c:url value="/content/about/about" />"> <spring:message code="menu.about" />
Matija Obreza's avatar
Matija Obreza committed
38
39
								</a>
							</li>
Taisiya Glushko's avatar
Taisiya Glushko committed
40
							<li class="pull-left">
Matija Obreza's avatar
Matija Obreza committed
41
								<a href="<c:url value="/content/about/contact" />"> <spring:message code="menu.contact" />
Matija Obreza's avatar
Matija Obreza committed
42
43
								</a>
							</li>
Taisiya Glushko's avatar
Taisiya Glushko committed
44
							<li class="pull-left">
Matija Obreza's avatar
Matija Obreza committed
45
								<a href="<c:url value="/content/about/what-is-genesys" />"> <spring:message code="menu.what-is-genesys" />
Matija Obreza's avatar
Matija Obreza committed
46
47
								</a>
							</li>
Matija Obreza's avatar
Matija Obreza committed
48
							<%-- <li><a href="<c:url value="/content/about/about" />"><i class="fa fa-caret-right"></i> <spring:message code="menu.who-uses-genesys" /></a></li> --%>
Taisiya Glushko's avatar
Taisiya Glushko committed
49
							<li class="pull-left">
Matija Obreza's avatar
Matija Obreza committed
50
								<a href="<c:url value="/content/about/history-of-genesys" />"> <spring:message code="menu.history-of-genesys" />
Matija Obreza's avatar
Matija Obreza committed
51
52
								</a>
							</li>
Taisiya Glushko's avatar
Taisiya Glushko committed
53
							<li class="pull-left">
Matija Obreza's avatar
Matija Obreza committed
54
								<a href="<c:url value="/content/about/newsletter" />"> <spring:message code="menu.newsletter" />
Matija Obreza's avatar
Matija Obreza committed
55
56
								</a>
							</li>
Taisiya Glushko's avatar
Taisiya Glushko committed
57
							<li class="pull-left">
Matija Obreza's avatar
Matija Obreza committed
58
								<a href="<c:url value="/content/about/frequently-asked-questions" />"> <spring:message code="menu.faq" />
Matija Obreza's avatar
Matija Obreza committed
59
60
								</a>
							</li>
61
62
63
64
65
66
67
68
69

							<li class="pull-left">
								<a href="<c:url value="/doc/0/basics" />"> <spring:message code="menu.basics" />
								</a>
							</li>
							<li class="pull-left">
								<a href="<c:url value="/doc/0/apis" />"> <spring:message code="menu.apis" />
								</a>
							</li>
Matija Obreza's avatar
Matija Obreza committed
70
71
72
73
							<li class="pull-left">
								<a href="<c:url value="/doc/0/brapi" />"> <spring:message code="menu.brapi" />
								</a>
							</li>
Matija Obreza's avatar
Matija Obreza committed
74
							<%-- <li role="separator" class="divider"></li>
Matija Obreza's avatar
Matija Obreza committed
75
76
77
78
79
80
						<li class="dropdown-header">Nav header</li>
						<li>
							<a href="#">Separated link</a>
						</li>
						<li>
							<a href="#">One more separated link</a>
Matija Obreza's avatar
Matija Obreza committed
81
						</li> --%>
Matija Obreza's avatar
Matija Obreza committed
82
83
						</ul>
					</li>
Taisiya Glushko's avatar
Taisiya Glushko committed
84
					<li class="pull-left">
Matija Obreza's avatar
Matija Obreza committed
85
						<a href="<c:url value="/explore" />"> <spring:message code="menu.browse" />
Matija Obreza's avatar
Matija Obreza committed
86
87
						</a>
					</li>
Matija Obreza's avatar
Matija Obreza committed
88
89
					<%-- <li><a href="<c:url value="/data/" />"><spring:message code="menu.datasets" /></a></li> --%>
					<%-- <li><a href="<c:url value="/descriptors/" />"><spring:message code="menu.descriptors" /></a></li> --%>
Taisiya Glushko's avatar
Taisiya Glushko committed
90
					<li class="pull-left">
Matija Obreza's avatar
Matija Obreza committed
91
						<a href="<c:url value="/geo/" />"> <spring:message code="menu.countries" />
Matija Obreza's avatar
Matija Obreza committed
92
93
						</a>
					</li>
Taisiya Glushko's avatar
Taisiya Glushko committed
94
					<li class="pull-left">
Matija Obreza's avatar
Matija Obreza committed
95
						<a href="<c:url value="/wiews/active" />"> <spring:message code="menu.institutes" />
Matija Obreza's avatar
Matija Obreza committed
96
97
						</a>
					</li>
Taisiya Glushko's avatar
Taisiya Glushko committed
98
					<li class="pull-left">
Matija Obreza's avatar
Matija Obreza committed
99
						<a href="<c:url value="/sel/" />"> <spring:message code="menu.my-list" /> <span class="badge" x-size="${selection.size() gt 0 ? selection.size() : '0'}" id="selcounter"><c:out value="${selection.size() gt 0 ? selection.size() : '0'}" /></span>
Matija Obreza's avatar
Matija Obreza committed
100
101
						</a>
					</li>
Matija Obreza's avatar
/1/ GUI    
Matija Obreza committed
102

Matija Obreza's avatar
Matija Obreza committed
103
					<%--<li class="dropdown">
Matija Obreza's avatar
Matija Obreza committed
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
					<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
						Dropdown
						<span class="caret"></span>
					</a>
					<ul class="dropdown-menu">
						<li>
							<a href="#">Action</a>
						</li>
						<li>
							<a href="#">Another action</a>
						</li>
						<li>
							<a href="#">Something else here</a>
						</li>
						<li role="separator" class="divider"></li>
						<li class="dropdown-header">Nav header</li>
						<li>
							<a href="#">Separated link</a>
						</li>
						<li>
							<a href="#">One more separated link</a>
						</li>
					</ul>
				</li> --%>
Matija Obreza's avatar
Matija Obreza committed
128
129
130
				</ul>
			</div>
			<div class="col-md-6 no-space">
Matija Obreza's avatar
Matija Obreza committed
131

Matija Obreza's avatar
Matija Obreza committed
132
				<ul class="nav navbar-nav navbar-right">
133
					<%@ include file="languages.jspf" %>
Matija Obreza's avatar
Matija Obreza committed
134
				</ul>
Matija Obreza's avatar
Matija Obreza committed
135

Matija Obreza's avatar
Matija Obreza committed
136
137
138
139
140
141
				<ul class="nav navbar-nav navbar-right">
					<security:authorize access="isAnonymous()">
						<li class="dropdown">
							<a href="#" class="dropdown-toggle" data-toggle="dropdown"> <spring:message code="page.login" /> <span class="caret"></span>
							</a>
							<ul class="dropdown-menu pull-left">
Matija Obreza's avatar
Matija Obreza committed
142
								<li>
Matija Obreza's avatar
Matija Obreza committed
143
144
									<form id="loginForm" role="form" method="post" action="<c:url value="/login-attempt" />">
										<div class="form-group">
Taisiya Glushko's avatar
Taisiya Glushko committed
145
											<label class="pull-left" for="username">
Matija Obreza's avatar
Matija Obreza committed
146
147
148
149
150
												<spring:message code="login.username" />
											</label>
											<input type="email" class="form-control" id="username" name="username" placeholder="<spring:message code="login.username"/>" />
										</div>
										<div class="form-group">
Taisiya Glushko's avatar
Taisiya Glushko committed
151
											<label class="pull-left" for="password">
Matija Obreza's avatar
Matija Obreza committed
152
153
154
155
156
												<spring:message code="login.password" />
											</label>
											<input type="password" class="form-control" id="password" name="password" placeholder="<spring:message code="login.password"/>" />
										</div>
										<div class="checkbox">
Taisiya Glushko's avatar
Taisiya Glushko committed
157
											<label class="pull-left">
Matija Obreza's avatar
Matija Obreza committed
158
159
160
161
162
163
164
165
166
												<input type="checkbox" name="_spring_security_remember_me" id="_spring_security_remember_me" />
												<spring:message code="login.remember-me" />
											</label>
										</div>
										<button type="submit" class="btn btn-primary">
											<spring:message code="login.login-button" />
										</button>
										<span class="or">-</span>
										<a href="<c:url value="/google/login" />" class="btn btn-default google-signin"> <spring:message code="login.with-google-plus" />
Matija Obreza's avatar
Matija Obreza committed
167
										</a> <a href="<c:url value="/registration" />" class="btn btn-default"> <spring:message code="login.register-now" />
Matija Obreza's avatar
Matija Obreza committed
168
169
170
171
										</a>
										<!-- CSRF protection -->
										<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
									</form>
Matija Obreza's avatar
Matija Obreza committed
172
								</li>
Matija Obreza's avatar
Matija Obreza committed
173
174
175
176
177
178
179
180
181
							</ul>
						</li>
					</security:authorize>
					<security:authorize access="isAuthenticated()">
						<li class="dropdown">
							<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"> <spring:message code="user.pulldown.heading"
									arguments="${user.user.name}" /> <span class="caret"></span>
							</a>
							<ul class="dropdown-menu pull-left">
Matija Obreza's avatar
Matija Obreza committed
182
								<li>
Matija Obreza's avatar
Matija Obreza committed
183
									<a href="<c:url value="/profile/${user.username}" />"> <spring:message code="user.pulldown.profile" />
Matija Obreza's avatar
Matija Obreza committed
184
185
186
									</a>
								</li>
								<li>
Matija Obreza's avatar
Matija Obreza committed
187
									<a id="logout1" href="#" onclick="document.getElementById('logoutForm').submit();"> <spring:message code="user.pulldown.logout" />
Matija Obreza's avatar
Matija Obreza committed
188
189
									</a>
								</li>
Matija Obreza's avatar
Matija Obreza committed
190
191
192
193
194


								<security:authorize access="hasRole('ADMINISTRATOR')">
									<li role="separator" class="divider"></li>
									<li>
Matija Obreza's avatar
Matija Obreza committed
195
										<a href="<c:url value="/admin/" />"> <spring:message code="user.pulldown.administration" />
Matija Obreza's avatar
Matija Obreza committed
196
197
198
										</a>
									</li>
									<li>
Matija Obreza's avatar
Matija Obreza committed
199
										<a href="<c:url value="/profile/list" />"> <spring:message code="user.pulldown.users" />
Matija Obreza's avatar
Matija Obreza committed
200
201
202
										</a>
									</li>
									<li>
Matija Obreza's avatar
Matija Obreza committed
203
										<a href="<c:url value="/team" />"> <spring:message code="user.pulldown.teams" />
Matija Obreza's avatar
Matija Obreza committed
204
205
206
										</a>
									</li>
									<li>
Matija Obreza's avatar
Matija Obreza committed
207
										<a href="<c:url value="/admin/oauth-clients/" />"> <spring:message code="user.pulldown.oauth-clients" />
Matija Obreza's avatar
Matija Obreza committed
208
209
210
										</a>
									</li>
									<li>
Matija Obreza's avatar
Matija Obreza committed
211
										<a href="<c:url value="/content" />"> <spring:message code="user.pulldown.manage-content" />
Matija Obreza's avatar
Matija Obreza committed
212
213
214
										</a>
									</li>
									<li>
Matija Obreza's avatar
Matija Obreza committed
215
										<a href="<c:url value="/project" />"> <spring:message code="project.page.list.title" />
Matija Obreza's avatar
Matija Obreza committed
216
217
218
219
220
221
222
										</a>
									</li>
								</security:authorize>
							</ul>
						</li>
					</security:authorize>
				</ul>
Matija Obreza's avatar
Matija Obreza committed
223

Matija Obreza's avatar
Matija Obreza committed
224
				<div class="header-search pull-left">
225
					<form action="/acn/search2" class="form-inline">
Matija Obreza's avatar
Matija Obreza committed
226
						<div class="form-group">
Matija Obreza's avatar
Matija Obreza committed
227
228
							<input type="text" name="q" class="form-control" placeholder="Search Genesys..." />
							<input type="submit" class="btn btn-primary" value="" />
Matija Obreza's avatar
Matija Obreza committed
229
230
231
						</div>
					</form>
				</div>
Matija Obreza's avatar
Matija Obreza committed
232
			</div>
Matija Obreza's avatar
Matija Obreza committed
233

Matija Obreza's avatar
Matija Obreza committed
234
		</div>
Matija Obreza's avatar
Matija Obreza committed
235
		<!--/.nav-collapse -->
Matija Obreza's avatar
Matija Obreza committed
236
	</div>
Matija Obreza's avatar
/1/ GUI    
Matija Obreza committed
237
238
239
</nav>

<form id="logoutForm" action="/logout" method="post">
Matija Obreza's avatar
Matija Obreza committed
240
	<input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
Matija Obreza's avatar
/1/ GUI    
Matija Obreza committed
241
</form>