Commit 7ccaa557 authored by Matija Obreza's avatar Matija Obreza
Browse files

Show available languages only to authenticated users

parent 8726494e
<%@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"%>
......
......@@ -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>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment