liquid_feedback_frontend
view app/main/interest/_show_box.lua @ 277:bde068b37608
Dropdown boxes except of delegation box removed, optical enhancements and repositioning of elements
author | bsw |
---|---|
date | Mon Feb 13 00:16:42 2012 +0100 (2012-02-13) |
parents | ec86db506312 |
children | b77e6a17ca77 |
line source
2 local issue = param.get("issue", "table")
4 local interest = Interest:by_pk(issue.id, app.session.member.id)
5 local membership = Membership:by_pk(issue.area_id, app.session.member_id)
7 slot.select("interest", function()
8 if interest then
10 ui.container{
11 content = function()
12 ui.container{
13 attr = {
14 class = "head head_active",
15 },
16 content = function()
17 ui.image{
18 static = "icons/16/eye.png"
19 }
20 slot.put(_"Your are interested")
22 end
23 }
25 if issue.state ~= "finished" and issue.state ~= "cancelled" and issue.state ~= "voting" then
26 ui.link{
27 image = { static = "icons/16/cross.png" },
28 text = _"Withdraw interest",
29 module = "interest",
30 action = "update",
31 params = { issue_id = issue.id, delete = true },
32 routing = { default = { mode = "redirect", module = "issue", view = "show", id = issue.id } }
33 }
34 end
35 end
36 }
37 else
38 if not issue.closed and not issue.fully_frozen then
39 ui.link{
40 image = { static = "icons/16/user_add.png" },
41 text = _"Add my interest",
42 module = "interest",
43 action = "update",
44 params = { issue_id = issue.id },
45 routing = { default = { mode = "redirect", module = "issue", view = "show", id = issue.id } }
46 }
47 end
48 end
49 end)