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
|
||||
.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
|
||||
|
||||
|
|
Loading…
Reference in a new issue