liquid_feedback_frontend

view app/main/member/history.lua @ 159:5d797c6706d5

implement quorum display

show the initiative quorum as a small 1px line in bargraph
allow to update your support on the diff page
better linked title in diff page
show absolute quorum numbers in detail pages of issue and initiative
author Daniel Poelzleithner <poelzi@poelzi.org>
date Sat Oct 09 03:42:48 2010 +0200 (2010-10-09)
parents 6a12fb7e4963
children 3e76be965ebb
line source
1 local member = Member:by_id(param.get_id())
3 slot.put_into("title", encode.html(_("Member name history for '#{name}'", { name = member.name })))
5 slot.select("actions", function()
6 ui.link{
7 content = function()
8 ui.image{ static = "icons/16/cancel.png" }
9 slot.put(_"Back")
10 end,
11 module = "member",
12 view = "show",
13 id = member.id
14 }
15 end)
17 ui.form{
18 attr = { class = "vertical" },
19 content = function()
20 ui.field.text{ label = _"Current name", value = member.name }
21 ui.field.text{ label = _"Current status", value = member.active and _'activated' or _'deactivated' }
22 end
23 }
26 local entries = member:get_reference_selector("history_entries"):add_order_by("id DESC"):exec()
28 ui.tag{
29 tag = "table",
30 content = function()
31 ui.tag{
32 tag = "tr",
33 content = function()
34 ui.tag{
35 tag = "th",
36 content = _("Name")
37 }
38 ui.tag{
39 tag = "th",
40 content = _("Status")
41 }
42 ui.tag{
43 tag = "th",
44 content = _("until")
45 }
46 end
47 }
48 for i, entry in ipairs(entries) do
49 ui.tag{
50 tag = "tr",
51 content = function()
52 ui.tag{
53 tag = "td",
54 content = entry.name
55 }
56 ui.tag{
57 tag = "td",
58 content = entry.active and _'activated' or _'deactivated',
59 }
60 ui.tag{
61 tag = "td",
62 content = format.timestamp(entry["until"])
63 }
64 end
65 }
66 end
67 end
68 }
69 slot.put("<br />")
70 ui.container{
71 content = _("This member account has been created at #{created}", { created = format.timestamp(member.created)})
72 }

Impressum / About Us