liquid_feedback_frontend
view app/main/interest/_show_box.lua @ 6:8d91bccab0bf
Version beta2
Possibility to browse voters of a closed issue
Registration with invite code
Email confirmation and password recovery
Download function (for database dumps) added
Critical bug solved, which made it impossible to select your opinion on other peoples suggestions
Catching error, when trying to set an opinion on a suggestion which has been meanwhile deleted
Fixed wrong sorting order for "supporters" or "potential supporters"
Added format info for birthday (Error when entering dates in wrong format is NOT fixed in this release)
Strip space characters from certain fields and ensure they contain at least 3 characters
Showing grade in opinion/list as clear text instead of integer value
More information on initiative is displayed while voting
Colored notification box shown on pages of issues or initiatives which are currently in voting state
Changed default filter for issues to "Open"
Back link on suggestion page
Some optical changes
Removed wrong space character in LICENSE file
Possibility to browse voters of a closed issue
Registration with invite code
Email confirmation and password recovery
Download function (for database dumps) added
Critical bug solved, which made it impossible to select your opinion on other peoples suggestions
Catching error, when trying to set an opinion on a suggestion which has been meanwhile deleted
Fixed wrong sorting order for "supporters" or "potential supporters"
Added format info for birthday (Error when entering dates in wrong format is NOT fixed in this release)
Strip space characters from certain fields and ensure they contain at least 3 characters
Showing grade in opinion/list as clear text instead of integer value
More information on initiative is displayed while voting
Colored notification box shown on pages of issues or initiatives which are currently in voting state
Changed default filter for issues to "Open"
Back link on suggestion page
Some optical changes
Removed wrong space character in LICENSE file
author | bsw/jbe |
---|---|
date | Sat Jan 02 12:00:00 2010 +0100 (2010-01-02) |
parents | afd9f769c7ae |
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