bsw@1820: if not config.privacy_policy then bsw@1820: return execute.view { module = "index", view = "404" } bsw@1820: end bsw@1820: bsw@1820: ui.title(config.privacy_policy_headline or _"Privacy policy") bsw@1820: bsw@1820: ui.grid{ content = function() bsw@1820: ui.cell_main{ content = function() bsw@1820: ui.container { attr = { class = "mdl-card mdl-shadow--2dp mdl-card__fullwidth" }, content = function() bsw@1820: ui.container{ attr = { class = "mdl-card__title mdl-card--border" }, content = function() bsw@1820: ui.heading { attr = { class = "mdl-card__title-text" }, level = 2, content = function() bsw@1820: ui.tag{ content = config.privacy_policy_headline or _"Privacy policy" } bsw@1820: if config.privacy_policy_subheadline then bsw@1820: slot.put("
") bsw@1820: ui.tag{ attr = { style = "font-size: 75%;" }, content = config.privacy_policy_subheadline } bsw@1820: end bsw@1820: end } bsw@1820: end } bsw@1820: ui.container{ attr = { class = "mdl-card__content draft" }, content = function() bsw@1820: slot.put(config.privacy_policy) bsw@1820: end } bsw@1820: end } bsw@1820: end } bsw@1820: end }