liquid_feedback_frontend

view app/main/index/_sidebar_whatcanido.lua @ 1414:cd497eb8fd73

Added forced sleep at end of notification loops
author bsw
date Sun Aug 26 13:40:28 2018 +0200 (2018-08-26)
parents 32cc544d5a5b
children 860e45ecd44e
line source
1 ui.container{ attr = { class = "mdl-card mdl-card__fullwidth mdl-shadow--2dp" }, content = function()
2 ui.container{ attr = { class = "mdl-card__title mdl-card--border" }, content = function()
3 ui.heading { attr = { class = "mdl-card__title-text" }, level = 2, content = _"What can I do here?" }
4 end }
5 ui.container{ attr = { class = "what-can-i-do-here" }, content = function()
7 if app.session.member then
8 ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function()
9 ui.tag{ content = _"I want to know whats going on" }
10 ui.tag { tag = "ul", attr = { class = "ul" }, content = function ()
11 ui.tag { tag = "li", content = _"take a look on the issues (see right)" }
12 ui.tag { tag = "li", content = _"by default only those issues are shown, for which your are eligible to participate (change filters on top of the list)" }
13 end }
14 end }
15 ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function()
16 ui.tag{ content = _"I want to stay informed" }
17 ui.tag { tag = "ul", attr = { class = "ul" }, content = function ()
18 ui.tag { tag = "li", content = function ()
19 ui.tag{ content = _"check your " }
20 ui.link{
21 module = "member", view = "settings_notification",
22 params = { return_to = "home" },
23 text = _"notifications settings"
24 }
25 end }
26 if not config.voting_only then
27 ui.tag { tag = "li", content = function ()
28 ui.tag{ content = _"subscribe subject areas or add your interested to issues and you will be notified about changes (follow the instruction on the area or issue page)" }
29 end }
30 end
31 end }
32 end }
33 if app.session.member.has_voting_right then
34 ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function()
35 ui.tag{ content = _"I want to vote" }
36 ui.tag { tag = "ul", attr = { class = "ul" }, content = function ()
37 ui.tag { tag = "li", content = _"check the issues on the right, and click on 'Vote now' to vote on an issue which is in voting phase." }
38 end }
39 end }
40 if not config.disable_delegations then
41 ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function()
42 ui.tag{ content = _"I want to delegate my vote" }
43 ui.tag { tag = "ul", attr = { class = "ul" }, content = function ()
44 ui.tag { tag = "li", content = _"open the organizational unit, subject area or issue you like to delegate and follow the instruction on that page." }
45 end }
46 end }
47 end
48 end
49 if not config.voting_only and app.session.member.has_initiative_right then
50 ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function()
51 ui.tag{ content = _"I want to start a new initiative" }
52 ui.tag { tag = "ul", attr = { class = "ul" }, content = function ()
53 ui.tag { tag = "li", content = _"open the appropriate subject area for your issue and follow the instruction on that page." }
54 end }
55 end }
56 end
57 if not config.single_unit_id then
58 ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function()
59 ui.tag{ content = _"I want to take a look at other organizational units" }
60 ui.tag { tag = "ul", attr = { class = "ul" }, content = function ()
61 ui.tag { tag = "li", content = function ()
62 ui.link{
63 module = "unit", view = "list",
64 text = _"show all units"
65 }
66 end }
67 end }
68 end }
69 end
70 if config.download_dir then
71 ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function()
72 ui.tag{ content = _"I want to download all data" }
73 ui.tag { tag = "ul", attr = { class = "ul" }, content = function ()
74 ui.tag { tag = "li", content = function ()
75 ui.link{
76 module = "index", view = "download",
77 text = _"download database"
78 }
79 end }
80 end }
81 end }
82 end
83 end
84 if not app.session.member then
85 ui.container { attr = { class = "mdl-card__content mdl-card--border" }, content = function ()
86 ui.tag{ content = _"You are not entitled to vote in this unit" }
87 ui.tag{ tag = "ul", content = function()
88 ui.tag{ tag = "li", content = function()
89 ui.link{ module = "index", view = "login", content = _"Login" }
90 end }
91 end }
92 end }
93 end
94 if not config.voting_only then
95 ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function()
96 ui.tag{ content = _"I want to learn more about LiquidFeedback" }
97 ui.tag { tag = "ul", attr = { class = "ul" }, content = function ()
98 ui.tag { tag = "li", content = function()
99 ui.link { module = "help", view = "introduction", content = _"structured discussion" }
100 end }
101 ui.tag { tag = "li", content = function()
102 ui.link { module = "help", view = "introduction", content = _"4 phases of a decision" }
103 end }
104 if not config.disable_delegations then
105 ui.tag { tag = "li", content = function()
106 ui.link { module = "help", view = "introduction", content = _"vote delegation" }
107 end }
108 end
109 ui.tag { tag = "li", content = function()
110 ui.link { module = "help", view = "introduction", content = _"preference voting" }
111 end }
112 end }
113 end }
114 end
115 end }
116 end }

Impressum / About Us