mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
don't show the lng select if there is only 1 lang to show
This commit is contained in:
parent
7c2beb5d2d
commit
f75838b353
1 changed files with 15 additions and 14 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue