# HG changeset patch # User bsw # Date 1352133569 -3600 # Node ID ad8114671ac8c497cf18c06ab60e752a77c7c87f # Parent 26a6d3330bab83b52a2d5fba7d46c4501cc9312c Show link to terms of use only when terms of use available diff -r 26a6d3330bab -r ad8114671ac8 app/main/_filter_view/30_navigation.lua --- a/app/main/_filter_view/30_navigation.lua Mon Nov 05 17:30:30 2012 +0100 +++ b/app/main/_filter_view/30_navigation.lua Mon Nov 05 17:39:29 2012 +0100 @@ -98,12 +98,14 @@ module = 'index', view = 'about' } - slot.put(" · ") - ui.link{ - text = _"Use terms", - module = 'index', - view = 'usage_terms' - } + if config.use_terms then + slot.put(" · ") + ui.link{ + text = _"Use terms", + module = 'index', + view = 'usage_terms' + } + end slot.put(" · ") ui.tag{ content = _"This site is using" } slot.put(" ")