bsw/jbe@0: bsw/jbe@0: local issue = param.get("issue", "table") bsw@339: local initiative = param.get("initiative", "table") bsw/jbe@0: bsw@551: if issue.member_info.own_participation then bsw/jbe@0: bsw@529: if issue.closed then bsw@529: ui.tag{ content = _"You were interested" } bsw@529: else bsw@529: ui.tag{ content = _"You are interested" } bsw@529: end bsw@525: slot.put(" ") bsw@277: bsw@525: if issue.state ~= "finished" and issue.state ~= "cancelled" and issue.state ~= "voting" then bsw@525: slot.put("(") bsw@525: ui.link{ bsw@525: text = _"Withdraw", bsw@525: module = "interest", bsw@525: action = "update", bsw@525: params = { issue_id = issue.id, delete = true }, bsw@528: routing = { bsw@528: default = { bsw@528: mode = "redirect", bsw@528: module = request.get_module(), bsw@528: view = request.get_view(), bsw@528: id = param.get_id_cgi(), bsw@528: params = param.get_all_cgi() bsw@528: } bsw@528: } bsw/jbe@4: } bsw@525: slot.put(") ") bsw@16: end bsw@525: elseif app.session.member:has_voting_right_for_unit_id(issue.area.unit_id) then bsw@525: if not issue.closed and not issue.fully_frozen then bsw@525: ui.link{ bsw@525: text = _"Add my interest", bsw@525: module = "interest", bsw@525: action = "update", bsw@525: params = { issue_id = issue.id }, bsw@528: routing = { bsw@528: default = { bsw@528: mode = "redirect", bsw@528: module = request.get_module(), bsw@528: view = request.get_view(), bsw@528: id = param.get_id_cgi(), bsw@528: params = param.get_all_cgi() bsw@528: } bsw@528: } bsw@525: } bsw@525: slot.put(" ") bsw@525: end bsw@525: end