liquid_feedback_frontend
changeset 415:2113a6bb597d
Show private nav items only when logged in
author | bsw |
---|---|
date | Sat Mar 10 17:09:10 2012 +0100 (2012-03-10) |
parents | 699b9fa7bc36 |
children | 5a50d566f040 |
files | app/main/_filter_view/30_navigation.lua |
line diff
1.1 --- a/app/main/_filter_view/30_navigation.lua Sat Mar 10 16:57:49 2012 +0100 1.2 +++ b/app/main/_filter_view/30_navigation.lua Sat Mar 10 17:09:10 2012 +0100 1.3 @@ -9,6 +9,9 @@ 1.4 module = 'index', 1.5 view = 'index' 1.6 } 1.7 + end 1.8 + 1.9 + if app.session.member_id then 1.10 ui.link{ 1.11 content = _"Units", 1.12 module = 'unit', 1.13 @@ -24,12 +27,6 @@ 1.14 module = 'contact', 1.15 view = 'list' 1.16 } 1.17 - else 1.18 - ui.link{ 1.19 - text = _"Login", 1.20 - module = 'index', 1.21 - view = 'index' 1.22 - } 1.23 end 1.24 1.25 if config.public_access and app.session.member == nil then