liquid_feedback_frontend
view env/ui/titleMember.lua @ 1296:4b1f59181341
Fix newsletter sending
author | bsw |
---|---|
date | Mon Apr 18 17:56:19 2016 +0200 (2016-04-18) |
parents | 9ba82d3a9445 |
children |
line source
1 function ui.titleMember(title, title2)
2 local member = app.session.member
3 if type(title) == "table" then
4 member = title
5 title = title2
6 end
7 ui.title(function()
8 if member then
9 ui.link { module = "member", view = "show", id = member.id, content = member.name }
10 end
11 if title then
12 ui.tag { attr = { class = "spacer" }, content = function()
13 slot.put ( " ยป " )
14 end }
15 ui.tag { attr = { class = "member" }, content = function()
16 ui.tag{ tag = "span", content = title }
17 end }
18 end
19 end)
20 end