liquid_feedback_frontend
diff app/main/help/introduction.lua @ 1708:ee2776bb46b1
Allow to overwrite Quick Guide title
author | bsw |
---|---|
date | Mon Sep 27 11:50:08 2021 +0200 (2021-09-27) |
parents | 7c91c52de1fb |
children | 52bf39db92fb |
line diff
1.1 --- a/app/main/help/introduction.lua Mon Sep 27 11:08:32 2021 +0200 1.2 +++ b/app/main/help/introduction.lua Mon Sep 27 11:50:08 2021 +0200 1.3 @@ -5,10 +5,14 @@ 1.4 1.5 ui.container{ attr = { class = "mdl-card mdl-card__fullwidth mdl-shadow--2dp" }, content = function() 1.6 ui.container{ attr = { class = "mdl-card__title mdl-card--has-fab mdl-card--border" }, content = function () 1.7 - ui.heading { attr = { class = "mdl-card__title-text" }, level = 1, content = _"Quick guide" } 1.8 + ui.heading { attr = { class = "mdl-card__title-text" }, level = 1, content = function() 1.9 + if config.quick_guide and config.quick_guide.title then 1.10 + slot.put(config.quick_guide.title) 1.11 + else 1.12 + ui.tag{ content = _"Quick guide" } 1.13 + end } 1.14 end } 1.15 ui.container { attr = { class = "draft mdl-card__content mdl-card--border" }, content = function() 1.16 - 1.17 if config.quick_guide and config.quick_guide.content then 1.18 slot.put(config.quick_guide.content) 1.19 else