lng dropdown at bottom in footer works nicely, needs few style tweeks
This commit is contained in:
@@ -142,5 +142,6 @@ module.exports = (app)->
|
||||
subdomain = _.find Settings.i18n.subdomainLang, (subdomain)->
|
||||
subdomain.lngCode == req.showUserOtherLng
|
||||
res.locals.recomendSubdomain = subdomain
|
||||
res.locals.currentLngCode = req.lng
|
||||
next()
|
||||
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
|
||||
|
||||
footer.site-footer
|
||||
.container
|
||||
.row
|
||||
@@ -9,14 +11,22 @@ footer.site-footer
|
||||
else
|
||||
| !{item.text}
|
||||
|
||||
ul.col-md-3
|
||||
|
||||
each subdomainDetails, subdomain in settings.i18n.subdomainLang
|
||||
li
|
||||
a(href=subdomainDetails.url+currentUrl)
|
||||
p #{translate(subdomainDetails.lngCode)}
|
||||
img(src="/img/flags/32/#{subdomainDetails.lngCode}.png")
|
||||
|
||||
.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")
|
||||
|
||||
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/32/#{subdomainDetails.lngCode}.png")
|
||||
|
||||
ul.col-md-3
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ nav.navbar.navbar-default
|
||||
a(href='/').navbar-brand
|
||||
|
||||
.navbar-collapse.collapse(collapse="navCollapsed")
|
||||
|
||||
|
||||
ul.nav.navbar-nav.navbar-right
|
||||
each item in nav.header
|
||||
if ((item.only_when_logged_in && session && session.user) || (item.only_when_logged_out && (!session || !session.user)) || (!item.only_when_logged_out && !item.only_when_logged_in))
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
.dropdown
|
||||
a.btn.btn-primary.dropdown-toggle(
|
||||
a.btn.dropdown-toggle(
|
||||
href="#",
|
||||
data-toggle="dropdown"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user