| rev | line source | 
| bsw/jbe@1309 | 1 ui.container{ attr = { class = "mdl-card mdl-card__fullwidth mdl-shadow--2dp" }, content = function() | 
| bsw/jbe@1309 | 2   ui.container{ attr = { class = "mdl-card__title mdl-card--border" }, content = function() | 
| bsw/jbe@1309 | 3     ui.heading { attr = { class = "mdl-card__title-text" }, level = 2, content = _"What can I do here?" } | 
| bsw/jbe@1309 | 4   end } | 
| bsw/jbe@1309 | 5   ui.container{ attr = { class = "what-can-i-do-here" }, content = function() | 
| bsw@1045 | 6 | 
| bsw/jbe@1309 | 7     if app.session.member then | 
| bsw/jbe@1309 | 8       ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function() | 
| bsw/jbe@1309 | 9         ui.tag{ content = _"I want to know whats going on" } | 
| bsw/jbe@1309 | 10         ui.tag { tag = "ul", attr = { class = "ul" }, content = function () | 
| bsw/jbe@1309 | 11           ui.tag { tag = "li", content = _"take a look on the issues (see right)" } | 
| bsw/jbe@1309 | 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)" } | 
| bsw/jbe@1309 | 13         end } | 
| bsw/jbe@1309 | 14       end } | 
| bsw/jbe@1309 | 15       ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function() | 
| bsw/jbe@1309 | 16         ui.tag{ content = _"I want to stay informed" } | 
| bsw@1059 | 17         ui.tag { tag = "ul", attr = { class = "ul" }, content = function () | 
| bsw@1059 | 18           ui.tag { tag = "li", content = function () | 
| bsw/jbe@1309 | 19             ui.tag{ content = _"check your " } | 
| bsw@1059 | 20             ui.link{ | 
| bsw/jbe@1309 | 21               module = "member", view = "settings_notification", | 
| bsw/jbe@1309 | 22               params = { return_to = "home" }, | 
| bsw/jbe@1309 | 23               text = _"notifications settings" | 
| bsw@1059 | 24             } | 
| bsw@1059 | 25           end } | 
| bsw/jbe@1309 | 26           if not config.voting_only then | 
| bsw/jbe@1309 | 27             ui.tag { tag = "li", content = function () | 
| bsw/jbe@1309 | 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)" } | 
| bsw/jbe@1309 | 29             end } | 
| bsw/jbe@1309 | 30           end | 
| bsw/jbe@1309 | 31         end } | 
| bsw/jbe@1309 | 32       end } | 
| bsw/jbe@1309 | 33       if app.session.member.has_voting_right then | 
| bsw/jbe@1309 | 34         ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function() | 
| bsw/jbe@1309 | 35           ui.tag{ content = _"I want to vote" } | 
| bsw/jbe@1309 | 36           ui.tag { tag = "ul", attr = { class = "ul" }, content = function () | 
| bsw/jbe@1309 | 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." } | 
| bsw/jbe@1309 | 38           end } | 
| bsw/jbe@1309 | 39         end } | 
| bsw/jbe@1309 | 40         if not config.disable_delegations then | 
| bsw/jbe@1309 | 41           ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function() | 
| bsw/jbe@1309 | 42             ui.tag{ content = _"I want to delegate my vote" } | 
| bsw/jbe@1309 | 43             ui.tag { tag = "ul", attr = { class = "ul" }, content = function () | 
| bsw/jbe@1309 | 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." } | 
| bsw/jbe@1309 | 45             end } | 
| bsw/jbe@1309 | 46           end } | 
| bsw/jbe@1309 | 47         end | 
| bsw/jbe@1309 | 48       end | 
| bsw/jbe@1309 | 49       if not config.voting_only and app.session.member.has_initiative_right then | 
| bsw/jbe@1309 | 50         ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function() | 
| bsw/jbe@1309 | 51           ui.tag{ content = _"I want to start a new initiative" } | 
| bsw/jbe@1309 | 52           ui.tag { tag = "ul", attr = { class = "ul" }, content = function () | 
| bsw/jbe@1309 | 53             ui.tag { tag = "li", content = _"open the appropriate subject area for your issue and follow the instruction on that page." } | 
| bsw/jbe@1309 | 54           end } | 
| bsw/jbe@1309 | 55         end } | 
| bsw/jbe@1309 | 56       end | 
| bsw/jbe@1309 | 57       if not config.single_unit_id then | 
| bsw/jbe@1309 | 58         ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function() | 
| bsw/jbe@1309 | 59           ui.tag{ content = _"I want to take a look at other organizational units" } | 
| bsw/jbe@1309 | 60           ui.tag { tag = "ul", attr = { class = "ul" }, content = function () | 
| bsw/jbe@1309 | 61             ui.tag { tag = "li", content = function () | 
| bsw/jbe@1309 | 62               ui.link{ | 
| bsw/jbe@1309 | 63                 module = "unit", view = "list", | 
| bsw/jbe@1309 | 64                 text = _"show all units" | 
| bsw/jbe@1309 | 65               } | 
| bsw/jbe@1309 | 66             end } | 
| bsw/jbe@1309 | 67           end } | 
| bsw/jbe@1309 | 68         end } | 
| bsw/jbe@1309 | 69       end | 
| bsw/jbe@1309 | 70       if config.download_dir then | 
| bsw/jbe@1309 | 71         ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function() | 
| bsw/jbe@1309 | 72           ui.tag{ content = _"I want to download all data" } | 
| bsw/jbe@1309 | 73           ui.tag { tag = "ul", attr = { class = "ul" }, content = function () | 
| bsw/jbe@1309 | 74             ui.tag { tag = "li", content = function () | 
| bsw/jbe@1309 | 75               ui.link{ | 
| bsw/jbe@1309 | 76                 module = "index", view = "download", | 
| bsw/jbe@1309 | 77                 text = _"download database" | 
| bsw/jbe@1309 | 78               } | 
| bsw/jbe@1309 | 79             end } | 
| bsw/jbe@1309 | 80           end } | 
| bsw/jbe@1309 | 81         end } | 
| bsw/jbe@1309 | 82       end | 
| bsw/jbe@1309 | 83     end | 
| bsw/jbe@1309 | 84     if not app.session.member then | 
| bsw/jbe@1309 | 85       ui.container { attr = { class = "mdl-card__content mdl-card--border" }, content = function () | 
| bsw/jbe@1309 | 86         ui.tag{ content = _"You are not entitled to vote in this unit" } | 
| bsw/jbe@1309 | 87         ui.tag{ tag = "ul", content = function() | 
| bsw/jbe@1309 | 88           ui.tag{ tag = "li", content = function() | 
| bsw/jbe@1309 | 89             ui.link{ module = "index", view = "login", content = _"Login" } | 
| bsw/jbe@1309 | 90           end } | 
| bsw/jbe@1309 | 91         end } | 
| bsw/jbe@1309 | 92       end } | 
| bsw/jbe@1309 | 93     end | 
| bsw/jbe@1309 | 94     if not config.voting_only then | 
| bsw/jbe@1309 | 95       ui.container{ attr = { class = "mdl-card__content mdl-card--border" }, content = function() | 
| bsw/jbe@1309 | 96         ui.tag{ content = _"I want to learn more about LiquidFeedback" } | 
| bsw/jbe@1309 | 97         ui.tag { tag = "ul", attr = { class = "ul" }, content = function () | 
| bsw/jbe@1309 | 98           ui.tag { tag = "li", content = function() | 
| bsw/jbe@1309 | 99             ui.link { module = "help", view = "introduction", content = _"structured discussion" } | 
| bsw/jbe@1309 | 100           end } | 
| bsw/jbe@1309 | 101           ui.tag { tag = "li", content = function() | 
| bsw/jbe@1309 | 102             ui.link { module = "help", view = "introduction", content = _"4 phases of a decision" } | 
| bsw/jbe@1309 | 103           end } | 
| bsw/jbe@1309 | 104           if not config.disable_delegations then | 
| bsw/jbe@1309 | 105             ui.tag { tag = "li", content = function() | 
| bsw/jbe@1309 | 106               ui.link { module = "help", view = "introduction", content = _"vote delegation" } | 
| bsw/jbe@1309 | 107             end } | 
| bsw/jbe@1309 | 108           end | 
| bsw/jbe@1309 | 109           ui.tag { tag = "li", content = function() | 
| bsw/jbe@1309 | 110             ui.link { module = "help", view = "introduction", content = _"preference voting" } | 
| bsw/jbe@1309 | 111           end } | 
| bsw@1059 | 112         end } | 
| bsw/jbe@1309 | 113       end } | 
| bsw@1059 | 114     end | 
| bsw/jbe@1309 | 115   end } | 
| bsw/jbe@1309 | 116 end } |