header.jsp 2.83 KB
Newer Older
1
2
3
4
5
6
7
8
<%@include file="/WEB-INF/jsp/init.jsp"%>

<div id="header">
	<div class="clearfix">
		<div class="pull-left">
			<a href="<c:url value="/" />"><img style="height: 40px;" src="<c:url value="/html/images/logo2.png" />" /></a>
		</div>

Matija Obreza's avatar
Bugfix    
Matija Obreza committed
9
		<div class="pull-right" id="searcher">
10
11
12
13
14
15
16
17
18
19
20
21
22
23
			<form class="form-inline" method="get" action="<c:url value="/search" />">
				<div class="input-group">
					<input type="text" name="q" class="form-control" placeholder="<spring:message code="search.input.placeholder" />" /> <span class="input-group-btn">
						<button type="submit" class="btn notimportant">
							<spring:message code="search.button.label" />
						</button>
					</span>
				</div>
			</form>
		</div>

		<div class="notimportant navbar pull-right">
			<div class="nav-collapse">
				<ul class="nav">
24
					<li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown"> <c:out value="${pageContext.response.locale.displayLanguage}" /> <b class="caret"></b>
25
26
					</a>
						<ul class="dropdown-menu">
27
							<li><a href="?lang=en">English</a></li>
Matija Obreza's avatar
Matija Obreza committed
28
29
							<li><a href="?lang=ar">Arabic</a></li>
							<li><a href="?lang=de">German</a></li>
30
31
							<li><a href="?lang=es">Spanish</a></li>
							<li><a href="?lang=fa">Persian</a></li>
Matija Obreza's avatar
Matija Obreza committed
32
33
34
							<li><a href="?lang=fr">French</a></li>
							<li><a href="?lang=pt">Portugese</a></li>
							<li><a href="?lang=ru">Russian</a></li>
Matija Obreza's avatar
i18n zh    
Matija Obreza committed
35
							<li><a href="?lang=zh">Chinese</a></li>
36
37
38
							
							<%-- Only show fully translated languages --%>
							<security:authorize access="isAuthenticated()">
39
							<li><a href="?lang=sl">Slovene</a></li>
40
							</security:authorize>
41
42
							
							<li><a target="_blank" href="https://www.transifex.com/projects/p/genesys/"><spring:message code="menu.translate" /></a></li>
43
44
45
46
47
48
						</ul></li>
				</ul>
			</div>
		</div>

		<div class="notimportant navbar pull-right">
Matija Obreza's avatar
Matija Obreza committed
49
			<security:authorize access="isAnonymous()">
50
				<ul class="nav">
Matija Obreza's avatar
Matija Obreza committed
51
					<li><a href="<c:url value="/login" />"><spring:message code="page.login" /></a>
52
				</ul>
Matija Obreza's avatar
Matija Obreza committed
53
54
			</security:authorize>
			<security:authorize access="isAuthenticated()">
55
				<ul class="nav">
Matija Obreza's avatar
Matija Obreza committed
56
					<li class="dropdown"><a class="dropdown-toggle" data-toggle="dropdown" title="<spring:message code="locale.language.change"/>"><spring:message code="user.pulldown.heading" arguments="${user.username}" /> <b class="caret"></b>
57
58
					</a>
						<ul class="dropdown-menu">
Matija Obreza's avatar
Matija Obreza committed
59
							<security:authorize access="hasRole('ADMINISTRATOR')">
Matija Obreza's avatar
Matija Obreza committed
60
								<li><a href="<c:url value="/admin/" />"><spring:message code="user.pulldown.administration" /></a></li>
Matija Obreza's avatar
Matija Obreza committed
61
							</security:authorize>
Matija Obreza's avatar
Matija Obreza committed
62
							<li><a href="<c:url value="/profile/${user.username}" />"><spring:message code="user.pulldown.profile" /></a></li>
63
64
65
							<li><a href="<c:url value="/logout" />"><spring:message code="user.pulldown.logout" /></a></li>
						</ul></li>
				</ul>
Matija Obreza's avatar
Matija Obreza committed
66
			</security:authorize>
67
68
69
		</div>

	</div>
Matija Obreza's avatar
Matija Obreza committed
70
</div>