liquid_feedback_frontend
view app/main/index/_not_voted_issues.lua @ 172:165f4bd02cf3
don't show the first draft of a new initiative as a new draft event in the timeline
new draft should only show changes of drafts drafts of new initiatives as they are handled by the new initiative event
new draft should only show changes of drafts drafts of new initiatives as they are handled by the new initiative event
| author | Daniel Poelzleithner <poelzi@poelzi.org> |
|---|---|
| date | Sun Oct 10 19:40:32 2010 +0200 (2010-10-10) |
| parents | 4f39f0a0d5b5 |
| children | 87c33552f406 |
line source
1 local areas = param.get("areas", "table")
3 if #areas > 0 then
4 ui.container{
5 attr = { style = "font-weight: bold;" },
6 content = _"Current votings in areas you are member of and issues you are interested in:"
7 }
9 ui.list{
10 records = areas,
11 columns = {
12 {
13 name = "name"
14 },
15 {
16 content = function(record)
17 if record.is_member and record.issues_to_vote_count > 0 then
18 ui.link{
19 content = function()
20 if record.issues_to_vote_count > 1 then
21 slot.put(_("#{issues_to_vote_count} issue(s)", { issues_to_vote_count = record.issues_to_vote_count }))
22 else
23 slot.put(_("One issue"))
24 end
25 end,
26 module = "area",
27 view = "show",
28 id = record.id,
29 params = {
30 filter = "frozen",
31 filter_voting = "not_voted"
32 }
33 }
34 else
35 slot.put(_"Not a member")
36 end
37 end
38 },
39 {
40 content = function(record)
41 if record.interested_issues_to_vote_count > 0 then
42 ui.link{
43 content = function()
44 if record.interested_issues_to_vote_count > 1 then
45 slot.put(_("#{interested_issues_to_vote_count} issue(s) you are interested in", { interested_issues_to_vote_count = record.interested_issues_to_vote_count }))
46 else
47 slot.put(_"One issue you are interested in")
48 end
49 end,
50 module = "area",
51 view = "show",
52 id = record.id,
53 params = {
54 filter = "frozen",
55 filter_interest = "my",
56 filter_voting = "not_voted"
57 }
58 }
59 end
60 end
61 },
62 }
63 }
64 end
