mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-29 10:13:01 +00:00
66ea2e613c
[web] rework the language picker UI in the footer GitOrigin-RevId: fb9fe9a560a0f059f58c76d6a85f31ffabc14f4f
61 lines
1.7 KiB
Text
61 lines
1.7 KiB
Text
|
|
|
|
footer.site-footer
|
|
- var showLanguagePicker = Object.keys(settings.i18n.subdomainLang).length > 1
|
|
- var hasCustomLeftNav = nav.left_footer && nav.left_footer.length > 0
|
|
.site-footer-content.hidden-print
|
|
.row
|
|
ul.col-md-9
|
|
if hasFeature('saas')
|
|
li © #{new Date().getFullYear()} Overleaf
|
|
else if !settings.nav.hide_powered_by
|
|
li
|
|
| © 2021
|
|
|
|
|
a(href='https://www.overleaf.com/for/enterprises') Powered by Overleaf
|
|
|
|
if showLanguagePicker || hasCustomLeftNav
|
|
li
|
|
strong.text-muted |
|
|
|
|
if showLanguagePicker
|
|
li.dropdown.dropup.subdued(dropdown)
|
|
a.dropdown-toggle(
|
|
href="#",
|
|
dropdown-toggle,
|
|
data-toggle="dropdown",
|
|
aria-haspopup="true",
|
|
aria-expanded="false",
|
|
aria-label="Select " + translate('language')
|
|
tooltip=translate('language')
|
|
)
|
|
i.fa.fa-fw.fa-language
|
|
|
|
|
| #{settings.translatedLanguages[currentLngCode]}
|
|
|
|
ul.dropdown-menu
|
|
li.dropdown-header #{translate("language")}
|
|
each subdomainDetails, subdomain in settings.i18n.subdomainLang
|
|
if !subdomainDetails.hide
|
|
li.lngOption
|
|
a.menu-indent(href=subdomainDetails.url+currentUrlWithQueryParams)
|
|
| #{settings.translatedLanguages[subdomainDetails.lngCode]}
|
|
|
|
if showLanguagePicker && hasCustomLeftNav
|
|
li
|
|
strong.text-muted |
|
|
|
|
each item in nav.left_footer
|
|
li
|
|
if item.url
|
|
a(href=item.url, class=item.class) !{translate(item.text)}
|
|
else
|
|
| !{item.text}
|
|
|
|
ul.col-md-3.text-right
|
|
each item in nav.right_footer
|
|
li
|
|
if item.url
|
|
a(href=item.url, class=item.class, aria-label=item.label) !{item.text}
|
|
else
|
|
| !{item.text}
|