liquid_feedback_frontend
view app/main/issue/_show_head.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
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 | 3941792e8be6 |
children | 559c6be0e1e9 |
line source
1 local issue = param.get("issue", "table")
3 slot.put_into("html_head", '<link rel="alternate" type="application/rss+xml" title="RSS" href="../show/' .. tostring(issue.id) .. '.rss" />')
5 slot.select("path", function()
6 ui.link{
7 content = _"Area '#{name}'":gsub("#{name}", issue.area.name),
8 module = "area",
9 view = "show",
10 id = issue.area.id
11 }
12 end)
14 slot.select("title", function()
15 ui.link{
16 content = _"Issue ##{id} (#{policy_name})":gsub("#{id}", issue.id):gsub("#{policy_name}", issue.policy.name),
17 module = "issue",
18 view = "show",
19 id = issue.id
20 }
21 end)
24 slot.select("actions", function()
26 if issue.state == 'voting' then
27 ui.link{
28 content = function()
29 ui.image{ static = "icons/16/email_open.png" }
30 slot.put(_"Vote now")
31 end,
32 module = "vote",
33 view = "list",
34 params = { issue_id = issue.id }
35 }
36 end
38 execute.view{
39 module = "interest",
40 view = "_show_box",
41 params = { issue = issue }
42 }
43 -- TODO performance
44 local interest = Interest:by_pk(issue.id, app.session.member.id)
45 if not issue.closed and not issue.fully_frozen then
46 if not interest then
47 ui.link{
48 content = function()
49 ui.image{ static = "icons/16/user_add.png" }
50 slot.put(_"Add my interest")
51 end,
52 module = "interest",
53 action = "update",
54 params = { issue_id = issue.id },
55 routing = { default = { mode = "redirect", module = "issue", view = "show", id = issue.id } }
56 }
57 end
58 end
60 if not issue.closed then
61 execute.view{
62 module = "delegation",
63 view = "_show_box",
64 params = { issue_id = issue.id }
65 }
66 end
68 --[[
69 if issue.state == "accepted" then
70 -- TODO
71 ui.link{
72 content = function()
73 ui.image{ static = "icons/16/time.png" }
74 slot.put(_"Vote now/later")
75 end,
76 }
77 end
78 --]]
80 if config.issue_discussion_url_func then
81 local url = config.issue_discussion_url_func(issue)
82 ui.link{
83 attr = { target = "_blank" },
84 external = url,
85 content = function()
86 ui.image{ static = "icons/16/comments.png" }
87 slot.put(_"Discussion on issue")
88 end,
89 }
90 end
91 end)
94 execute.view{
95 module = "issue",
96 view = "_show_box",
97 params = { issue = issue }
98 }
100 -- ui.twitter("http://example.com/t" .. tostring(issue.id))
103 if issue.state == 'voting' then
104 ui.container{
105 attr = { class = "voting_active_info" },
106 content = function()
107 slot.put(_"Voting for this issue is currently running!")
108 slot.put(" ")
109 ui.link{
110 content = function()
111 slot.put(_"Vote now")
112 end,
113 module = "vote",
114 view = "list",
115 params = { issue_id = issue.id }
116 }
117 end
118 }
119 slot.put("<br />")
120 end