# HG changeset patch # User bsw # Date 1632736208 -7200 # Node ID ee2776bb46b17c19386eb37082db25df88e9d30c # Parent 7c91c52de1fb92ee9fe365e617c8a5f8d1c5c29f Allow to overwrite Quick Guide title diff -r 7c91c52de1fb -r ee2776bb46b1 app/main/help/introduction.lua --- a/app/main/help/introduction.lua Mon Sep 27 11:08:32 2021 +0200 +++ b/app/main/help/introduction.lua Mon Sep 27 11:50:08 2021 +0200 @@ -5,10 +5,14 @@ ui.container{ attr = { class = "mdl-card mdl-card__fullwidth mdl-shadow--2dp" }, content = function() ui.container{ attr = { class = "mdl-card__title mdl-card--has-fab mdl-card--border" }, content = function () - ui.heading { attr = { class = "mdl-card__title-text" }, level = 1, content = _"Quick guide" } + ui.heading { attr = { class = "mdl-card__title-text" }, level = 1, content = function() + if config.quick_guide and config.quick_guide.title then + slot.put(config.quick_guide.title) + else + ui.tag{ content = _"Quick guide" } + end } end } ui.container { attr = { class = "draft mdl-card__content mdl-card--border" }, content = function() - if config.quick_guide and config.quick_guide.content then slot.put(config.quick_guide.content) else