bsw@1045: function ui.titleMember(title, title2) bsw@1045: local member = app.session.member bsw@1045: if type(title) == "table" then bsw@1045: member = title bsw@1045: title = title2 bsw@1045: end bsw@1045: ui.title(function() bsw@1045: if member then bsw@1045: ui.link { module = "member", view = "show", id = member.id, content = member.name } bsw@1045: end bsw@1045: if title then bsw@1122: ui.tag { attr = { class = "spacer" }, content = function() bsw@1122: slot.put ( " ยป " ) bsw@1122: end } bsw@1045: ui.tag { attr = { class = "member" }, content = function() bsw@1045: ui.tag{ tag = "span", content = title } bsw@1045: end } bsw@1045: end bsw@1045: end) bsw@1045: end