liquid_feedback_frontend

view app/main/issue/_show_box.lua @ 124:f740026b1518

add initiator support in delegation

if a delegation is issued from the initiative view, the initiators
from that one are added to the delegation target list. this makes it easier to delegate to the author without the need to add him to the contact list.
author Daniel Poelzleithner <poelzi@poelzi.org>
date Mon Sep 20 20:32:04 2010 +0200 (2010-09-20)
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)

Impressum / About Us