liquid_feedback_frontend
view 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 source
     1 if not config.privacy_policy then
     2   return execute.view { module = "index", view = "404" }
     3 end
     5 ui.title(config.privacy_policy_headline or _"Privacy policy")
     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.privacy_policy_headline or _"Privacy policy" }
    13            if config.privacy_policy_subheadline then
    14             slot.put("<br>")
    15             ui.tag{ attr = { style = "font-size: 75%;" }, content = config.privacy_policy_subheadline }
    16           end
    17         end }
    18       end }
    19       ui.container{ attr = { class = "mdl-card__content draft" }, content = function()
    20         slot.put(config.privacy_policy)
    21       end }
    22     end }
    23   end }
    24 end }
