liquid_feedback_frontend
view app/main/issue/_show_box.lua @ 145:90520c9fca44
implement area filter in timeline
allows the user to ignore any area in the timeline filter.
better display in javascript off
allows the user to ignore any area in the timeline filter.
better display in javascript off
author | Daniel Poelzleithner <poelzi@poelzi.org> |
---|---|
date | Thu Oct 07 00:35:48 2010 +0200 (2010-10-07) |
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)