liquid_feedback_frontend
view app/main/interest/_show_box.lua @ 528:305329da1c75
Wording and css changes
author | bsw |
---|---|
date | Fri May 18 21:03:10 2012 +0200 (2012-05-18) |
parents | 63d6549cc00b |
children | 5ca9de94cb13 |
line source
2 local issue = param.get("issue", "table")
3 local initiative = param.get("initiative", "table")
5 local interest = Interest:by_pk(issue.id, app.session.member.id)
6 local membership = Membership:by_pk(issue.area_id, app.session.member_id)
8 if interest then
10 ui.tag{ content = _"Your are interested" }
11 slot.put(" ")
13 if issue.state ~= "finished" and issue.state ~= "cancelled" and issue.state ~= "voting" then
14 slot.put("(")
15 ui.link{
16 text = _"Withdraw",
17 module = "interest",
18 action = "update",
19 params = { issue_id = issue.id, delete = true },
20 routing = {
21 default = {
22 mode = "redirect",
23 module = request.get_module(),
24 view = request.get_view(),
25 id = param.get_id_cgi(),
26 params = param.get_all_cgi()
27 }
28 }
29 }
30 slot.put(") ")
31 end
32 elseif app.session.member:has_voting_right_for_unit_id(issue.area.unit_id) then
33 if not issue.closed and not issue.fully_frozen then
34 ui.link{
35 text = _"Add my interest",
36 module = "interest",
37 action = "update",
38 params = { issue_id = issue.id },
39 routing = {
40 default = {
41 mode = "redirect",
42 module = request.get_module(),
43 view = request.get_view(),
44 id = param.get_id_cgi(),
45 params = param.get_all_cgi()
46 }
47 }
48 }
49 slot.put(" ")
50 end
51 end