liquid_feedback_frontend

view app/main/interest/_show_box.lua @ 9:0ee1e0c42d4c

Version beta5

Minor security fix: Added missing security filter for admin section. Reading of member listing including login names was possible for all users. Write access has not been possible though.

Changing of name and login is possible while a history of these changes is written and accessible by all users.

Statistics shown in area list

Trimming of user input also converts multiple whitespaces to single space character.
author bsw
date Mon Jan 04 12:00:00 2010 +0100 (2010-01-04)
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

Impressum / About Us