liquid_feedback_frontend

view app/main/member/show.lua @ 2:5c601807d397

Version alpha3

Dark green part of issue supporter bargraph represents all satisfied supporters, regardless of having seen the latest draft

Wiki formatting for drafts

Showing differences between two drafts of the same initiative

Display of outgoing delegation chains

Many other improvements
author bsw
date Mon Nov 23 12:00:00 2009 +0100 (2009-11-23)
parents 3bfb2fcf7ab9
children 768faea1096d
line source
1 local member = Member:by_id(param.get_id())
3 slot.select("title", function()
4 ui.image{
5 attr = { class = "avatar" },
6 module = "member",
7 view = "avatar",
8 extension = "jpg",
9 id = member.id
10 }
11 end)
13 slot.put_into("title", encode.html(_"Member '#{member}'":gsub("#{member}", member.name)))
15 if member.id == app.session.member.id then
16 slot.put_into("actions", _"That's me!")
17 else
18 slot.select("actions", function()
19 ui.link{
20 content = function()
21 ui.image{ static = "icons/16/book_add.png" }
22 slot.put(encode.html(_"Add to my contacts"))
23 end,
24 module = "contact",
25 action = "add_member",
26 id = member.id
27 }
28 end)
29 end
32 execute.view{
33 module = "member",
34 view = "_show",
35 params = { member = member }
36 }

Impressum / About Us