liquid_feedback_frontend
changeset 942:ad8114671ac8
Show link to terms of use only when terms of use available
author | bsw |
---|---|
date | Mon Nov 05 17:39:29 2012 +0100 (2012-11-05) |
parents | 26a6d3330bab |
children | 56a741c590a0 |
files | app/main/_filter_view/30_navigation.lua |
line diff
1.1 --- a/app/main/_filter_view/30_navigation.lua Mon Nov 05 17:30:30 2012 +0100 1.2 +++ b/app/main/_filter_view/30_navigation.lua Mon Nov 05 17:39:29 2012 +0100 1.3 @@ -98,12 +98,14 @@ 1.4 module = 'index', 1.5 view = 'about' 1.6 } 1.7 - slot.put(" · ") 1.8 - ui.link{ 1.9 - text = _"Use terms", 1.10 - module = 'index', 1.11 - view = 'usage_terms' 1.12 - } 1.13 + if config.use_terms then 1.14 + slot.put(" · ") 1.15 + ui.link{ 1.16 + text = _"Use terms", 1.17 + module = 'index', 1.18 + view = 'usage_terms' 1.19 + } 1.20 + end 1.21 slot.put(" · ") 1.22 ui.tag{ content = _"This site is using" } 1.23 slot.put(" ")