bsw/jbe@1309: ui.container{ attr = { class = "mdl-card mdl-card__fullwidth mdl-shadow--2dp" }, content = function() bsw/jbe@1309: ui.container{ attr = { class = "mdl-card__title mdl-card--border" }, content = function() bsw/jbe@1309: ui.heading { attr = { class = "mdl-card__title-text" }, level = 2, content = _"What can I do here?" } bsw/jbe@1309: end } bsw/jbe@1309: ui.container{ attr = { class = "what-can-i-do-here" }, content = function() bsw@1045: bsw/jbe@1309: if app.session.member then bsw/jbe@1309: ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function() bsw/jbe@1309: ui.tag{ content = _"I want to know whats going on" } bsw/jbe@1309: ui.tag { tag = "ul", attr = { class = "ul" }, content = function () bsw/jbe@1309: ui.tag { tag = "li", content = _"take a look on the issues (see right)" } bsw/jbe@1309: 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)" } bsw/jbe@1309: end } bsw/jbe@1309: end } bsw/jbe@1309: ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function() bsw/jbe@1309: ui.tag{ content = _"I want to stay informed" } bsw@1059: ui.tag { tag = "ul", attr = { class = "ul" }, content = function () bsw@1059: ui.tag { tag = "li", content = function () bsw/jbe@1309: ui.tag{ content = _"check your " } bsw@1059: ui.link{ bsw/jbe@1309: module = "member", view = "settings_notification", bsw/jbe@1309: params = { return_to = "home" }, bsw/jbe@1309: text = _"notifications settings" bsw@1059: } bsw@1059: end } bsw/jbe@1309: if not config.voting_only then bsw/jbe@1309: ui.tag { tag = "li", content = function () bsw/jbe@1309: 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)" } bsw/jbe@1309: end } bsw/jbe@1309: end bsw/jbe@1309: end } bsw/jbe@1309: end } bsw@1712: if not config.voting_only and app.session.member.has_initiative_right then bsw@1712: ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function() bsw@1712: ui.tag{ content = _"I want to start a new initiative" } bsw@1712: ui.tag { tag = "ul", attr = { class = "ul" }, content = function () bsw@1712: ui.tag { tag = "li", content = _"open the appropriate subject area for your issue and follow the instruction on that page." } bsw@1712: end } bsw@1712: end } bsw@1712: end bsw/jbe@1309: if app.session.member.has_voting_right then bsw/jbe@1309: ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function() bsw/jbe@1309: ui.tag{ content = _"I want to vote" } bsw/jbe@1309: ui.tag { tag = "ul", attr = { class = "ul" }, content = function () bsw/jbe@1309: 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." } bsw/jbe@1309: end } bsw/jbe@1309: end } bsw/jbe@1309: if not config.disable_delegations then bsw/jbe@1309: ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function() bsw/jbe@1309: ui.tag{ content = _"I want to delegate my vote" } bsw/jbe@1309: ui.tag { tag = "ul", attr = { class = "ul" }, content = function () bsw/jbe@1309: ui.tag { tag = "li", content = _"open the organizational unit, subject area or issue you like to delegate and follow the instruction on that page." } bsw/jbe@1309: end } bsw/jbe@1309: end } bsw/jbe@1309: end bsw/jbe@1309: end bsw@1711: if not config.single_unit_id and not config.do_not_show_other_units_link then bsw/jbe@1309: ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function() bsw/jbe@1309: ui.tag{ content = _"I want to take a look at other organizational units" } bsw/jbe@1309: ui.tag { tag = "ul", attr = { class = "ul" }, content = function () bsw/jbe@1309: ui.tag { tag = "li", content = function () bsw/jbe@1309: ui.link{ bsw/jbe@1309: module = "unit", view = "list", bsw/jbe@1309: text = _"show all units" bsw/jbe@1309: } bsw/jbe@1309: end } bsw/jbe@1309: end } bsw/jbe@1309: end } bsw/jbe@1309: end bsw/jbe@1309: if config.download_dir then bsw/jbe@1309: ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function() bsw/jbe@1309: ui.tag{ content = _"I want to download all data" } bsw/jbe@1309: ui.tag { tag = "ul", attr = { class = "ul" }, content = function () bsw/jbe@1309: ui.tag { tag = "li", content = function () bsw/jbe@1309: ui.link{ bsw/jbe@1309: module = "index", view = "download", bsw/jbe@1309: text = _"download database" bsw/jbe@1309: } bsw/jbe@1309: end } bsw/jbe@1309: end } bsw/jbe@1309: end } bsw/jbe@1309: end bsw/jbe@1309: end bsw/jbe@1309: if not app.session.member then bsw/jbe@1309: ui.container { attr = { class = "mdl-card__content mdl-card--border" }, content = function () bsw@1717: ui.tag{ content = _"Login to participate" } bsw@1717: ui.tag{ tag = "ul", content = function() bsw@1717: ui.tag{ tag = "li", content = function() bsw@1788: ui.link{ module = "index", view = "login", content = _"Login [button]" } bsw/jbe@1309: end } bsw@1717: end } bsw/jbe@1309: end } bsw/jbe@1309: end bsw/jbe@1309: if not config.voting_only then bsw/jbe@1309: ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function() bsw/jbe@1309: ui.tag{ content = _"I want to learn more about LiquidFeedback" } bsw@1726: if config.quick_guide and config.quick_guide.links then bsw@1726: ui.container{ content = config.quick_guide.links } bsw@1726: else bsw@1726: ui.tag { tag = "ul", attr = { class = "ul" }, content = function () bsw@1726: ui.tag { tag = "li", content = function() bsw@1726: ui.link { module = "help", view = "introduction", content = _"structured discussion" } bsw@1726: end } bsw/jbe@1309: ui.tag { tag = "li", content = function() bsw@1726: ui.link { module = "help", view = "introduction", content = _"4 phases of a decision" } bsw/jbe@1309: end } bsw@1726: if not config.disable_delegations then bsw@1726: ui.tag { tag = "li", content = function() bsw@1726: ui.link { module = "help", view = "introduction", content = _"vote delegation" } bsw@1726: end } bsw@1726: end bsw@1726: ui.tag { tag = "li", content = function() bsw@1726: ui.link { module = "help", view = "introduction", content = _"preference voting" } bsw@1726: end } bsw@1726: end } bsw@1726: end bsw/jbe@1309: end } bsw@1059: end bsw/jbe@1309: end } bsw/jbe@1309: end }