annotate app/main/index/privacy.lua @ 1828:caa6c71dd22a
Show units as tree in member administration
 | author | 
 bsw | 
 | date | 
 Thu Feb 03 12:16:11 2022 +0100 (2022-02-03) | 
 | parents | 
 2e5b303ea68e  | 
 | children | 
  | 
 
 | rev | 
   line source | 
| 
bsw@1820
 | 
     1 if not config.privacy_policy then
 | 
| 
bsw@1820
 | 
     2   return execute.view { module = "index", view = "404" }
 | 
| 
bsw@1820
 | 
     3 end
 | 
| 
bsw@1820
 | 
     4 
 | 
| 
bsw@1820
 | 
     5 ui.title(config.privacy_policy_headline or _"Privacy policy")
 | 
| 
bsw@1820
 | 
     6 
 | 
| 
bsw@1820
 | 
     7 ui.grid{ content = function()
 | 
| 
bsw@1820
 | 
     8   ui.cell_main{ content = function()
 | 
| 
bsw@1820
 | 
     9     ui.container { attr = { class = "mdl-card mdl-shadow--2dp mdl-card__fullwidth" }, content = function()
 | 
| 
bsw@1820
 | 
    10       ui.container{ attr = { class = "mdl-card__title mdl-card--border" }, content = function()
 | 
| 
bsw@1820
 | 
    11         ui.heading { attr = { class = "mdl-card__title-text" }, level = 2, content = function()
 | 
| 
bsw@1820
 | 
    12            ui.tag{ content = config.privacy_policy_headline or _"Privacy policy" }
 | 
| 
bsw@1820
 | 
    13            if config.privacy_policy_subheadline then
 | 
| 
bsw@1820
 | 
    14             slot.put("<br>")
 | 
| 
bsw@1820
 | 
    15             ui.tag{ attr = { style = "font-size: 75%;" }, content = config.privacy_policy_subheadline }
 | 
| 
bsw@1820
 | 
    16           end
 | 
| 
bsw@1820
 | 
    17         end }
 | 
| 
bsw@1820
 | 
    18       end }
 | 
| 
bsw@1820
 | 
    19       ui.container{ attr = { class = "mdl-card__content draft" }, content = function()
 | 
| 
bsw@1820
 | 
    20         slot.put(config.privacy_policy)
 | 
| 
bsw@1820
 | 
    21       end }
 | 
| 
bsw@1820
 | 
    22     end }
 | 
| 
bsw@1820
 | 
    23   end }
 | 
| 
bsw@1820
 | 
    24 end }
 |