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