# HG changeset patch # User bsw # Date 1330601279 -3600 # Node ID d89ca4142dc5091882490f6c6ea6560338a11f4f # Parent 5a0d5369b21dd54c3031e76bb5e403d3ca5ecae9 Removed Home navigation button when no public access diff -r 5a0d5369b21d -r d89ca4142dc5 app/main/_filter_view/30_navigation.lua --- a/app/main/_filter_view/30_navigation.lua Thu Mar 01 12:25:46 2012 +0100 +++ b/app/main/_filter_view/30_navigation.lua Thu Mar 01 12:27:59 2012 +0100 @@ -2,11 +2,19 @@ slot.select('navigation', function() - ui.link{ - text = _"Home", - module = 'index', - view = 'index' - } + if config.public_access or app.session.member_id then + ui.link{ + text = _"Home", + module = 'index', + view = 'index' + } + else + ui.link{ + text = _"Login", + module = 'index', + view = 'index' + } + end if app.session.member then @@ -26,7 +34,7 @@ end end - if app.session.member == nil then + if config.public_access and app.session.member == nil then ui.link{ text = _"Login", module = 'index', @@ -37,6 +45,8 @@ redirect_id = param.get_id() } } + end + if app.session.member == nil then ui.link{ text = _"Registration", module = 'index',