liquid_feedback_frontend

view app/main/interest/_show_box.lua @ 10:72c5e0ee7c98

Version beta6

Bugfixes:
- Security fix: Every user was able to change the discussion URL of an initiative
- Creation of new issues in areas without default policies is now possible
- Members can now be sorted in different ways
- No error when trying to compare a draft with itself
- Added missing local statement to variable initialization in app/main/delegation/new.lua
- CSS flaw in initiative action bar fixed

New features:
- Possiblity to invite other users to become initiator
- Revokation of initiatives implemented
- Number of suggestions, supporters, etc. is shown on corresponding tabs of initiative view
- Members can now be sorted by account creation (default sorting is "newest first")
- Configuration option to create an automatic discussion link for all issues
- First draft of global timeline feature (not accessible via link yet)
- Custom stylesheet URL for users marked as developers

In area listing the number of closed issues is shown too

Renamed "author" field of initiative to "last author"

Removed wrongly included file app/main/member/_show_thumb.lua.orig in the distribution

Help texts updated
author bsw
date Sun Jan 10 12:00:00 2010 +0100 (2010-01-10)
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