liquid_feedback_frontend
diff app/main/index/privacy.lua @ 1820:2e5b303ea68e
Better handling of use terms, added view for privacy policy
| author | bsw | 
|---|---|
| date | Wed Jan 26 00:33:21 2022 +0100 (2022-01-26) | 
| parents | |
| children | 
   line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/app/main/index/privacy.lua Wed Jan 26 00:33:21 2022 +0100 1.3 @@ -0,0 +1,24 @@ 1.4 +if not config.privacy_policy then 1.5 + return execute.view { module = "index", view = "404" } 1.6 +end 1.7 + 1.8 +ui.title(config.privacy_policy_headline or _"Privacy policy") 1.9 + 1.10 +ui.grid{ content = function() 1.11 + ui.cell_main{ content = function() 1.12 + ui.container { attr = { class = "mdl-card mdl-shadow--2dp mdl-card__fullwidth" }, content = function() 1.13 + ui.container{ attr = { class = "mdl-card__title mdl-card--border" }, content = function() 1.14 + ui.heading { attr = { class = "mdl-card__title-text" }, level = 2, content = function() 1.15 + ui.tag{ content = config.privacy_policy_headline or _"Privacy policy" } 1.16 + if config.privacy_policy_subheadline then 1.17 + slot.put("<br>") 1.18 + ui.tag{ attr = { style = "font-size: 75%;" }, content = config.privacy_policy_subheadline } 1.19 + end 1.20 + end } 1.21 + end } 1.22 + ui.container{ attr = { class = "mdl-card__content draft" }, content = function() 1.23 + slot.put(config.privacy_policy) 1.24 + end } 1.25 + end } 1.26 + end } 1.27 +end }