bsw/jbe@19: local initiator = param.get("initiator", "table") bsw/jbe@19: local initiative = param.get("initiative", "table") bsw/jbe@19: bsw/jbe@19: if initiator and initiator.accepted and not initiative.issue.half_frozen and not initiative.issue.closed and not initiative.revoked then bsw/jbe@19: ui.link{ bsw/jbe@19: attr = { style = "float: right;" }, bsw/jbe@19: content = function() bsw/jbe@19: ui.image{ static = "icons/16/script_add.png" } bsw/jbe@19: slot.put(_"Edit draft") bsw/jbe@19: end, bsw/jbe@19: module = "draft", bsw/jbe@19: view = "new", bsw/jbe@19: params = { initiative_id = initiative.id } bsw/jbe@19: } bsw/jbe@19: end bsw@271: bsw@271: if initiator and initiator.accepted and not initiative.issue.half_frozen and not initiative.issue.closed and not initiative.revoked then bsw@271: ui.link{ bsw@271: attr = { class = "action", style = "float: right;" }, bsw@271: content = function() bsw@271: ui.image{ static = "icons/16/script_delete.png" } bsw@271: slot.put(_"Revoke initiative") bsw@271: end, bsw@271: module = "initiative", bsw@271: view = "revoke", bsw@271: id = initiative.id bsw@271: } bsw@271: end bsw@271: bsw/jbe@19: execute.view{ module = "draft", view = "_show", params = { draft = initiative.current_draft } }