menu.jsp 10.6 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">
7
			<button type="button" class="humburger-btn 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>
13
			<a class="navbar-brand nav-logo clearfix" href="<c:url value="/welcome" />"><img src="<c:url value="${cdnServers.next}/html/1/images/GENESYS-ICON.svg" />" /><img src="<c:url value="${cdnServers.next}/html/1/images/GENESYS-LOGO.svg" />" /></a>
Matija Obreza's avatar
Matija Obreza committed
14 15
		</div>
		<div id="navbar" class="collapse navbar-collapse">
16
			<div class="col-md-6 col-lg-9 no-space">
Matija Obreza's avatar
Matija Obreza committed
17
				<div class="navbar-header">
18
					<button type="button" class="humburger-btn 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>
24
					<a class="navbar-brand nav-logo clearfix" href="<c:url value="/welcome" />"><img src="<c:url value="${cdnServers.next}/html/1/images/GENESYS-ICON.svg" />" /><img src="<c:url value="${cdnServers.next}/html/1/images/GENESYS-LOGO.svg" />" /></a>
Matija Obreza's avatar
Matija Obreza committed
25 26
				</div>

27 28 29
				<ul class="nav navbar-nav nav-menu" id="navigation-menu">
					<li class="dropdown pull-left menu-title" id="about-li" >
						<a class="menu-link" id="about-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>
Matija Obreza's avatar
Matija Obreza committed
30 31
						</a>
						<ul class="dropdown-menu">
Taisiya Glushko's avatar
Taisiya Glushko committed
32
							<li class="pull-left">
Matija Obreza's avatar
Matija Obreza committed
33
								<a href="<c:url value="/content/about/about" />"> <spring:message code="menu.about" />
Matija Obreza's avatar
Matija Obreza committed
34 35
								</a>
							</li>
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/contact" />"> <spring:message code="menu.contact" />
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/what-is-genesys" />"> <spring:message code="menu.what-is-genesys" />
Matija Obreza's avatar
Matija Obreza committed
42 43
								</a>
							</li>
Matija Obreza's avatar
Matija Obreza committed
44
							<%-- <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
45
							<li class="pull-left">
Matija Obreza's avatar
Matija Obreza committed
46
								<a href="<c:url value="/content/about/history-of-genesys" />"> <spring:message code="menu.history-of-genesys" />
Matija Obreza's avatar
Matija Obreza committed
47 48
								</a>
							</li>
49 50 51 52
							<li class="pull-left">
								<a href="<c:url value="/acn/updates" />"> <spring:message code="accession.page.updates.title" />
								</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>
84 85
					<li class="pull-left menu-title" id="explore-li">
						<a class="menu-link" href="<c:url value="/explore" />"> <spring:message code="menu.browse" />
Matija Obreza's avatar
Matija Obreza committed
86 87
						</a>
					</li>
Maxym Borodenko's avatar
Maxym Borodenko committed
88 89 90 91 92
					<li class="pull-left menu-title" id="datasets-li">
						<a class="menu-link" href="<c:url value='${genesysCatalogUrl}/datasets' />" title="<spring:message code="menu.datasets" />">
							<spring:message code="menu.datasets" />
						</a>
					</li>
Matija Obreza's avatar
Matija Obreza committed
93
					<%-- <li><a href="<c:url value="/descriptors/" />"><spring:message code="menu.descriptors" /></a></li> --%>
94 95
					<li class="pull-left menu-title" id="geo-id">
						<a class="menu-link" href="<c:url value="/geo/" />"> <spring:message code="menu.countries" />
Matija Obreza's avatar
Matija Obreza committed
96 97
						</a>
					</li>
98 99
					<li class="pull-left menu-title" id="inst-id">
						<a class="menu-link" href="<c:url value="/wiews/active" />"> <spring:message code="menu.institutes" />
Matija Obreza's avatar
Matija Obreza committed
100 101
						</a>
					</li>
102 103
					<li class="pull-left menu-title" id="list-id">
						<a class="menu-link" 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
104 105
						</a>
					</li>
Matija Obreza's avatar
/1/ GUI  
Matija Obreza committed
106

Matija Obreza's avatar
Matija Obreza committed
107
					<%--<li class="dropdown">
Matija Obreza's avatar
Matija Obreza committed
108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131
					<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
132 133
				</ul>
			</div>
134
			<div class="col-md-6 col-lg-3 no-space">
Matija Obreza's avatar
Matija Obreza committed
135

Matija Obreza's avatar
Matija Obreza committed
136
				<ul class="nav navbar-nav navbar-right">
137
					<%@ include file="languages.jspf" %>
Matija Obreza's avatar
Matija Obreza committed
138
				</ul>
Matija Obreza's avatar
Matija Obreza committed
139

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


								<security:authorize access="hasRole('ADMINISTRATOR')">
									<li role="separator" class="divider"></li>
									<li>
Matija Obreza's avatar
Matija Obreza committed
199
										<a href="<c:url value="/admin/" />"> <spring:message code="user.pulldown.administration" />
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="/admin/users/" />"> <spring:message code="user.pulldown.users" />
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="/team" />"> <spring:message code="user.pulldown.teams" />
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="/admin/oauth-clients/" />"> <spring:message code="user.pulldown.oauth-clients" />
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="/content" />"> <spring:message code="user.pulldown.manage-content" />
Matija Obreza's avatar
Matija Obreza committed
216 217 218
										</a>
									</li>
									<li>
Matija Obreza's avatar
Matija Obreza committed
219
										<a href="<c:url value="/project" />"> <spring:message code="project.page.list.title" />
Matija Obreza's avatar
Matija Obreza committed
220 221 222 223 224 225 226
										</a>
									</li>
								</security:authorize>
							</ul>
						</li>
					</security:authorize>
				</ul>
Matija Obreza's avatar
Matija Obreza committed
227

Matija Obreza's avatar
Matija Obreza committed
228
				<div class="header-search pull-left">
229
					<form action="/acn/search2" class="form-inline">
Matija Obreza's avatar
Matija Obreza committed
230
						<div class="form-group">
231
							<input name="q" class="form-control js-search-input" placeholder="Search Genesys..." />
Matija Obreza's avatar
Matija Obreza committed
232
							<input type="submit" class="btn btn-primary" value="" />
Matija Obreza's avatar
Matija Obreza committed
233 234 235
						</div>
					</form>
				</div>
236 237 238 239 240 241 242 243 244 245
                <div class="search-wrap">
                    <div class="header-search-desktop">
                        <form action="/acn/search2" class="searchbox">
                            <input type="search" name="q" class="searchbox-input" placeholder="Search Genesys..." />
                            <input type="submit" class="searchbox-submit" value="" />
                            <span class="searchbox-icon"></span>
                        </form>
                    </div>
                </div>
            </div>
Matija Obreza's avatar
Matija Obreza committed
246
		</div>
Matija Obreza's avatar
Matija Obreza committed
247
		<!--/.nav-collapse -->
Matija Obreza's avatar
Matija Obreza committed
248
	</div>
Matija Obreza's avatar
/1/ GUI  
Matija Obreza committed
249 250 251
</nav>

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