don't show the lng select if there is only 1 lang to show

This commit is contained in:
Henry Oswald 2014-08-14 15:42:31 +01:00
parent 7c2beb5d2d
commit f75838b353

View file

@ -13,22 +13,23 @@ footer.site-footer
.col-md-3
.dropdown.dropup.subdued
a.dropdown-toggle(
href="#",
data-toggle="dropdown",
aria-haspopup="true",
aria-expanded="false"
) #{translate("language")}
|  
img(src="/img/flags/24/#{currentLngCode}.png")
if Object.keys(settings.i18n.subdomainLang).length > 1
.dropdown.dropup.subdued
a.dropdown-toggle(
href="#",
data-toggle="dropdown",
aria-haspopup="true",
aria-expanded="false"
) #{translate("language")}
|  
img(src="/img/flags/24/#{currentLngCode}.png")
ul.dropdown-menu(role="menu")
each subdomainDetails, subdomain in settings.i18n.subdomainLang
li.lngOption
a.menu-indent(href=subdomainDetails.url+currentUrl) #{translate(subdomainDetails.lngCode)}
ul.dropdown-menu(role="menu")
each subdomainDetails, subdomain in settings.i18n.subdomainLang
li.lngOption
a.menu-indent(href=subdomainDetails.url+currentUrl) #{translate(subdomainDetails.lngCode)}
img(src="/img/flags/24/#{subdomainDetails.lngCode}.png")
img(src="/img/flags/24/#{subdomainDetails.lngCode}.png")
ul.col-md-3