VIVO-12 NIHVIVO-4011 Provide config and GUI for selecting Locale
This commit is contained in:
parent
1ba6204815
commit
bb6b2fa970
19 changed files with 1346 additions and 10 deletions
|
@ -8,6 +8,7 @@
|
|||
|
||||
<nav role="navigation">
|
||||
<ul id="header-nav" role="list">
|
||||
<#include "languageSelector.ftl">
|
||||
<#if user.loggedIn>
|
||||
<li role="listitem">${user.loginName}</li>
|
||||
<li role="listitem"><a href="${urls.logout}" title="End your session">Log out</a></li>
|
||||
|
|
|
@ -0,0 +1,31 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#--
|
||||
How can this done with images instead of buttons containing images?
|
||||
Why don't the "alt" values show as tooltips?"
|
||||
What was the right way to do this?
|
||||
-->
|
||||
|
||||
<#-- This is included by identity.ftl -->
|
||||
<#if selectLocale??>
|
||||
<li>
|
||||
<form method="get" action="${selectLocale.selectLocaleUrl}" >
|
||||
<#list selectLocale.locales as locale>
|
||||
<button type="submit" name="selection" value="${locale.code}">
|
||||
<img src="${locale.imageUrl}" height="15" align="middle" alt="${locale.label}"/>
|
||||
</button>
|
||||
<#if locale_has_next>|</#if>
|
||||
</#list>
|
||||
</form>
|
||||
</li>
|
||||
</#if>
|
||||
|
||||
<#--
|
||||
* selectLocale
|
||||
* -- selectLocaleUrl
|
||||
* -- locales [list of maps]
|
||||
* -- [map]
|
||||
* -- code
|
||||
* -- label (tooltip relative to the current Locale)
|
||||
* -- imageUrl
|
||||
-->
|
Loading…
Add table
Add a link
Reference in a new issue