Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
Genesys Backend
Commits
7ccaa557
Commit
7ccaa557
authored
Oct 03, 2013
by
Matija Obreza
Browse files
Show available languages only to authenticated users
parent
8726494e
Changes
2
Show whitespace changes
Inline
Side-by-side
src/main/webapp/WEB-INF/decorator/entry.jsp
View file @
7ccaa557
<%@include
file=
"/WEB-INF/jsp/init.jsp"
%>
<%@ taglib
prefix=
"sec"
uri=
"http://www.springframework.org/security/tags"
%>
<html>
<html
dir=
"${pageContext.response.locale.language=='fa' || pageContext.response.locale.language=='ar' ? 'rtl' : 'ltr'}"
>
<head>
<title><sitemesh:write
property=
"title"
/></title>
<%@include
file=
"/WEB-INF/jsp/head-init.jsp"
%>
...
...
src/main/webapp/WEB-INF/decorator/header.jsp
View file @
7ccaa557
...
...
@@ -25,8 +25,12 @@
</a>
<ul
class=
"dropdown-menu"
>
<li><a
href=
"?lang=en"
><spring:message
code=
"sample.message.locale.en"
/></a></li>
<%-- Only show fully translated languages --%>
<security:authorize
access=
"isAuthenticated()"
>
<li><a
href=
"?lang=sl"
><spring:message
code=
"sample.message.locale.sl"
/></a></li>
<li><a
href=
"?lang=fa"
><spring:message
code=
"sample.message.locale.fa"
/></a></li>
</security:authorize>
</ul></li>
</ul>
</div>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment