bsw@1820: if not config.use_terms then bsw@1820: return execute.view { module = "index", view = "404" } bsw@1820: end bsw@1045: bsw@1820: ui.title(config.use_terms_headline or _"Terms of use") bsw/jbe@19: 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.use_terms_headline or _"Terms of use" } bsw@1820: if config.use_terms_subheadline then bsw@1820: slot.put("
") bsw@1820: ui.tag{ attr = { style = "font-size: 75%;" }, content = config.use_terms_subheadline } bsw@1820: end bsw@1820: end } bsw@1820: end } bsw@1820: ui.container{ attr = { class = "mdl-card__content draft" }, content = function() bsw@1045: slot.put(config.use_terms) bsw@1820: end } bsw@1820: end } bsw@1820: end } bsw@1820: end }