bsw@2: local issue = param.get("issue", "table") bsw@2: bsw@2: slot.select("issue_info", function() bsw/jbe@52: ui.tag{ bsw/jbe@52: tag = "div", bsw/jbe@52: content = function() bsw/jbe@52: ui.tag{ bsw/jbe@52: tag = "label", bsw/jbe@52: attr = { class = "ui_field_label" }, bsw/jbe@52: content = _"Policy", bsw/jbe@52: } bsw/jbe@52: ui.tag{ bsw/jbe@52: content = function() bsw/jbe@52: ui.link{ bsw/jbe@52: text = issue.policy.name, bsw/jbe@52: module = "policy", bsw/jbe@52: view = "show", bsw/jbe@52: id = issue.policy.id bsw/jbe@52: } bsw/jbe@52: end bsw/jbe@52: } bsw/jbe@52: bsw/jbe@52: end bsw/jbe@19: } bsw/jbe@52: bsw/jbe@19: ui.field.text{ bsw@2: label = _"State", bsw@2: value = issue.state_name bsw@2: } bsw@2: local time_left = issue.state_time_left bsw@2: if time_left then bsw@2: ui.field.text{ bsw@3: label = _"Time left", bsw@2: value = time_left bsw@2: } bsw@2: end bsw@2: local next_state_names = issue.next_states_names bsw@2: if next_state_names then bsw@2: ui.field.text{ bsw@3: label = _"Next state", bsw@2: value = next_state_names bsw@2: } bsw@2: end bsw@2: end)