liquid_feedback_frontend

view app/main/index/_sidebar_whatcanido.lua @ 1858:3d1f0464a3ea

Handle missing ldap.member.allowed function
author bsw
date Tue Sep 20 17:35:29 2022 +0200 (20 months ago)
parents b27b327be05e
children
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 not config.voting_only and app.session.member.has_initiative_right then
34 ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function()
35 ui.tag{ content = _"I want to start a new initiative" }
36 ui.tag { tag = "ul", attr = { class = "ul" }, content = function ()
37 ui.tag { tag = "li", content = _"open the appropriate subject area for your issue and follow the instruction on that page." }
38 end }
39 end }
40 end
41 if app.session.member.has_voting_right then
42 ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function()
43 ui.tag{ content = _"I want to vote" }
44 ui.tag { tag = "ul", attr = { class = "ul" }, content = function ()
45 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." }
46 end }
47 end }
48 if not config.disable_delegations then
49 ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function()
50 ui.tag{ content = _"I want to delegate my vote" }
51 ui.tag { tag = "ul", attr = { class = "ul" }, content = function ()
52 ui.tag { tag = "li", content = _"open the organizational unit, subject area or issue you like to delegate and follow the instruction on that page." }
53 end }
54 end }
55 end
56 end
57 if not config.single_unit_id and not config.do_not_show_other_units_link 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 = _"Login to participate" }
87 ui.tag{ tag = "ul", content = function()
88 ui.tag{ tag = "li", content = function()
89 ui.link{ module = "index", view = "login", content = _"Login [button]" }
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 if config.quick_guide and config.quick_guide.links then
98 ui.container{ content = config.quick_guide.links }
99 else
100 ui.tag { tag = "ul", attr = { class = "ul" }, content = function ()
101 ui.tag { tag = "li", content = function()
102 ui.link { module = "help", view = "introduction", content = _"structured discussion" }
103 end }
104 ui.tag { tag = "li", content = function()
105 ui.link { module = "help", view = "introduction", content = _"4 phases of a decision" }
106 end }
107 if not config.disable_delegations then
108 ui.tag { tag = "li", content = function()
109 ui.link { module = "help", view = "introduction", content = _"vote delegation" }
110 end }
111 end
112 ui.tag { tag = "li", content = function()
113 ui.link { module = "help", view = "introduction", content = _"preference voting" }
114 end }
115 end }
116 end
117 end }
118 end
119 end }
120 end }

Impressum / About Us