liquid_feedback_frontend
view app/main/issue/_show_box.lua @ 172:165f4bd02cf3
don't show the first draft of a new initiative as a new draft event in the timeline
new draft should only show changes of drafts drafts of new initiatives as they are handled by the new initiative event
new draft should only show changes of drafts drafts of new initiatives as they are handled by the new initiative event
author | Daniel Poelzleithner <poelzi@poelzi.org> |
---|---|
date | Sun Oct 10 19:40:32 2010 +0200 (2010-10-10) |
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)