liquid_feedback_frontend
view env/ui/titleMember.lua @ 1849:c3dba3a85be3
Fixed translations
| author | bsw | 
|---|---|
| date | Thu Feb 03 16:10:39 2022 +0100 (2022-02-03) | 
| 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
