liquid_feedback_frontend
changeset 370:d89ca4142dc5
Removed Home navigation button when no public access
author | bsw |
---|---|
date | Thu Mar 01 12:27:59 2012 +0100 (2012-03-01) |
parents | 5a0d5369b21d |
children | 74f768a162e1 |
files | app/main/_filter_view/30_navigation.lua |
line diff
1.1 --- a/app/main/_filter_view/30_navigation.lua Thu Mar 01 12:25:46 2012 +0100 1.2 +++ b/app/main/_filter_view/30_navigation.lua Thu Mar 01 12:27:59 2012 +0100 1.3 @@ -2,11 +2,19 @@ 1.4 1.5 slot.select('navigation', function() 1.6 1.7 - ui.link{ 1.8 - text = _"Home", 1.9 - module = 'index', 1.10 - view = 'index' 1.11 - } 1.12 + if config.public_access or app.session.member_id then 1.13 + ui.link{ 1.14 + text = _"Home", 1.15 + module = 'index', 1.16 + view = 'index' 1.17 + } 1.18 + else 1.19 + ui.link{ 1.20 + text = _"Login", 1.21 + module = 'index', 1.22 + view = 'index' 1.23 + } 1.24 + end 1.25 1.26 if app.session.member then 1.27 1.28 @@ -26,7 +34,7 @@ 1.29 end 1.30 end 1.31 1.32 - if app.session.member == nil then 1.33 + if config.public_access and app.session.member == nil then 1.34 ui.link{ 1.35 text = _"Login", 1.36 module = 'index', 1.37 @@ -37,6 +45,8 @@ 1.38 redirect_id = param.get_id() 1.39 } 1.40 } 1.41 + end 1.42 + if app.session.member == nil then 1.43 ui.link{ 1.44 text = _"Registration", 1.45 module = 'index',