liquid_feedback_frontend
view app/main/issue/_show_box.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
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 | 88ac7798b562 |
children | d13b27a37ad5 |
line source
1 local issue = param.get("issue", "table")
3 slot.select("issue_info", function()
4 ui.tag{
5 tag = "div",
6 content = function()
7 ui.tag{
8 tag = "label",
9 attr = { class = "ui_field_label" },
10 content = _"Policy",
11 }
12 ui.tag{
13 content = function()
14 ui.link{
15 text = issue.policy.name,
16 module = "policy",
17 view = "show",
18 id = issue.policy.id
19 }
20 end
21 }
23 end
24 }
26 ui.field.text{
27 label = _"State",
28 value = issue.state_name
29 }
30 local time_left = issue.state_time_left
31 if time_left then
32 ui.field.text{
33 label = _"Time left",
34 value = time_left
35 }
36 end
37 local next_state_names = issue.next_states_names
38 if next_state_names then
39 ui.field.text{
40 label = _"Next state",
41 value = next_state_names
42 }
43 end
44 end)