liquid_feedback_frontend
view app/main/interest/_show_box.lua @ 5:afd9f769c7ae
Version beta1
Final voting with Schulze-Method is now possible
Many bug fixes and code cleanup
Registration with invite codes
More sort and filter options
Seperated display of "supporters" and "potential supporters"
Optical changes
Flood limit / initiative contigent is now checked by frontend
Neccessary changes to access core beta11
Final voting with Schulze-Method is now possible
Many bug fixes and code cleanup
Registration with invite codes
More sort and filter options
Seperated display of "supporters" and "potential supporters"
Optical changes
Flood limit / initiative contigent is now checked by frontend
Neccessary changes to access core beta11
author | bsw/jbe |
---|---|
date | Fri Dec 25 12:00:00 2009 +0100 (2009-12-25) |
parents | 80c215dbf076 |
children | 559c6be0e1e9 |
line source
2 local issue = param.get("issue", "table")
4 local interest = Interest:by_pk(issue.id, app.session.member.id)
6 if interest then
7 slot.select("actions", function()
9 ui.container{
10 attr = { class = "interest vote_info"},
11 content = function()
12 ui.container{
13 attr = {
14 class = "head head_active",
15 onclick = "document.getElementById('interest_content').style.display = 'block';"
16 },
17 content = function()
18 ui.image{
19 static = "icons/16/eye.png"
20 }
21 slot.put(_"Your are interested")
22 ui.image{
23 static = "icons/16/dropdown.png"
24 }
25 end
26 }
28 ui.container{
29 attr = { class = "content", id = "interest_content" },
30 content = function()
31 ui.container{
32 attr = {
33 class = "close",
34 style = "cursor: pointer;",
35 onclick = "document.getElementById('interest_content').style.display = 'none';"
36 },
37 content = function()
38 ui.image{ static = "icons/16/cross.png" }
39 end
40 }
41 if issue.state ~= "finished" and issue.state ~= "cancelled" and issue.state ~= "voting" then
42 ui.link{
43 content = _"Remove my interest",
44 module = "interest",
45 action = "update",
46 params = { issue_id = issue.id, delete = true },
47 routing = { default = { mode = "redirect", module = "issue", view = "show", id = issue.id } }
48 }
49 slot.put("<br />")
50 slot.put("<br />")
51 end
52 if interest.autoreject then
53 ui.field.text{ value = _"Autoreject is on." }
54 if issue.state ~= "finished" and issue.state ~= "cancelled" then
55 ui.link{
56 content = _"Remove autoreject",
57 module = "interest",
58 action = "update",
59 params = { issue_id = issue.id, autoreject = false },
60 routing = { default = { mode = "redirect", module = "issue", view = "show", id = issue.id } }
61 }
62 end
63 else
64 ui.field.text{ value = _"Autoreject is off." }
65 if issue.state ~= "finished" and issue.state ~= "cancelled" then
66 ui.link{
67 content = _"Set autoreject",
68 module = "interest",
69 action = "update",
70 params = { issue_id = issue.id, autoreject = true },
71 routing = { default = { mode = "redirect", module = "issue", view = "show", id = issue.id } }
72 }
73 end
74 end
75 end
76 }
77 end
78 }
79 end)
80 end