bsw@1045: function ui.title ( content ) bsw@1045: bsw@1045: slot.select ( "title", function () bsw@1045: bsw@1045: -- home link bsw@1045: ui.link { bsw@1045: module = "index", view = "index", bsw@1045: attr = { class = "home", title = _"Home" }, bsw@1045: content = function () bsw/jbe@1309: ui.tag{ tag = "i", attr = { class = "material-icons" }, content = "home" } bsw@1045: end bsw@1045: } bsw@1045: bsw@1045: if content then bsw@1045: ui.tag { attr = { class = "spacer" }, content = function() bsw@1045: slot.put ( " ยป " ) bsw@1045: end } bsw/jbe@1309: ui.tag { content = content } bsw@1045: else bsw@1045: ui.tag { attr = { class = "spacer" }, content = function() bsw@1045: slot.put ( " " ) bsw@1045: end } bsw/jbe@1309: ui.tag { content = _"Home" } bsw@1045: end bsw@1045: bsw@1045: end ) bsw@1045: bsw@1045: end