liquid_feedback_frontend
view app/main/issue/_show_head.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 | 3941792e8be6 |
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 if issue.state == "accepted" then
69 -- TODO
70 ui.link{
71 content = function()
72 ui.image{ static = "icons/16/time.png" }
73 slot.put(_"Vote now/later")
74 end,
75 }
76 end
78 end)
81 execute.view{
82 module = "issue",
83 view = "_show_box",
84 params = { issue = issue }
85 }
87 -- ui.twitter("http://example.com/t" .. tostring(issue.id))
90 if issue.state == 'voting' then
91 ui.container{
92 attr = { class = "voting_active_info" },
93 content = function()
94 slot.put(_"Voting for this issue is currently running!")
95 slot.put(" ")
96 ui.link{
97 content = function()
98 slot.put(_"Vote now")
99 end,
100 module = "vote",
101 view = "list",
102 params = { issue_id = issue.id }
103 }
104 end
105 }
106 slot.put("<br />")
107 end