openvibers/openvibe.wiki Commits

The bar: the main places with icons (the phone app bar), the rest under More, Search is the magnifier (#129)

OP OpenVibers committed 16 days ago · bc3ed4b46c · 1 file, +7 −4

Changes

ddiff --git a/server/render/layout.js b/server/render/layout.js
iindex 22397a2..d254487 100644
---- a/server/render/layout.js
++++ b/server/render/layout.js
@@@ -49,11 +49,14 @@ function navConfig(o, config) {
service: 'wiki',
apiBase: NETWORK_URL,
links: [
-- { label: 'Wikis', href: '/', active: o.active === 'home' },
-- { label: 'Vibe a wiki', href: '/vibe', active: o.active === 'vibe' },
-- { label: 'Recent changes', href: '/recent', active: o.active === 'recent' },
-- { label: 'Search', href: '/search', active: o.active === 'search' },
++ // The product's own places: the main ones carry an icon (phones get them as the bottom tab bar), the rest fold
++ // into the navbar's More (Shared 4.22). Search is the navbar's magnifier; What shipped is the footer's.
++ { label: 'Wikis', href: '/', icon: 'fa-book', active: o.active === 'home' },
++ { label: 'Vibe a wiki', href: '/vibe', icon: 'fa-wand-magic-sparkles', active: o.active === 'vibe' },
++ { label: 'Recent changes', href: '/recent', icon: 'fa-clock-rotate-left', active: o.active === 'recent' },
],
++ appBar: true, // phones: the places as the bottom tab bar (Shared 4.20)
++ search: { page: '/search', label: 'OpenVibe.Wiki' }, // the magnifier offers this site's own search first
history: { type: 'page', title: o.title || SITE_NAME },
silentLogin: `${config.baseUrl}/auth/login?silent=1&next={url}`,
sessionUrl: '/auth/me',