liquid_feedback_frontend

view app/main/index/usage_terms.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 701a5cf6b067
children
line source
1 if not config.use_terms then
2 return execute.view { module = "index", view = "404" }
3 end
5 ui.title(config.use_terms_headline or _"Terms of use")
7 ui.grid{ content = function()
8 ui.cell_main{ content = function()
9 ui.container { attr = { class = "mdl-card mdl-shadow--2dp mdl-card__fullwidth" }, content = function()
10 ui.container{ attr = { class = "mdl-card__title mdl-card--border" }, content = function()
11 ui.heading { attr = { class = "mdl-card__title-text" }, level = 2, content = function()
12 ui.tag{ content = config.use_terms_headline or _"Terms of use" }
13 if config.use_terms_subheadline then
14 slot.put("<br>")
15 ui.tag{ attr = { style = "font-size: 75%;" }, content = config.use_terms_subheadline }
16 end
17 end }
18 end }
19 ui.container{ attr = { class = "mdl-card__content draft" }, content = function()
20 slot.put(config.use_terms)
21 end }
22 end }
23 end }
24 end }

Impressum / About Us