liquid_feedback_frontend
view app/main/index/_sidebar_whatcanido.lua @ 1194:e0a6eabedd16
merge
| author | bsw | 
|---|---|
| date | Wed Apr 15 12:27:54 2015 +0200 (2015-04-15) | 
| parents | 2d038d3ae153 | 
| children | 32cc544d5a5b | 
 line source
     1 ui.sidebar ( "tab-whatcanido", function ()
     3   ui.sidebarHeadWhatCanIDo()
     5   if app.session.member then
     6     ui.sidebarSection( function()
     7       ui.heading { level = 3, content = _"I want to know whats going on" }
     8       ui.tag { tag = "ul", attr = { class = "ul" }, content = function ()
     9         ui.tag { tag = "li", content = _"take a look on the issues (see left)" }
    10         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)" }
    11       end } 
    12     end )
    13     ui.sidebarSection( function()
    14       ui.heading { level = 3, content = _"I want to stay informed" }
    15       ui.tag { tag = "ul", attr = { class = "ul" }, content = function ()
    16         ui.tag { tag = "li", content = function ()
    17           ui.tag{ content = _"check your " }
    18           ui.link{
    19             module = "member", view = "settings_notification",
    20             params = { return_to = "home" },
    21             text = _"notifications settings"
    22           }
    23         end }
    24         ui.tag { tag = "li", content = function ()
    25           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)" }
    26         end }
    27       end } 
    28     end )
    29     ui.sidebarSection( function()
    30       ui.heading { level = 3, content = _"I want to start a new initiative" }
    31       ui.tag { tag = "ul", attr = { class = "ul" }, content = function ()
    32         ui.tag { tag = "li", content = _"open the appropriate subject area for your issue and follow the instruction on that page." }
    33       end } 
    34     end )
    35     ui.sidebarSection( function()
    36       ui.heading { level = 3, content = _"I want to delegate my vote" }
    37       ui.tag { tag = "ul", attr = { class = "ul" }, content = function ()
    38         ui.tag { tag = "li", content = _"open the organizational unit, subject area or issue you like to delegate and follow the instruction on that page." }
    39       end } 
    40     end )
    41     ui.sidebarSection( function()
    42       ui.heading { level = 3, content = _"I want to take a look at other organizational units" }
    43       ui.tag { tag = "ul", attr = { class = "ul" }, content = function ()
    44         ui.tag { tag = "li", content = function ()
    45           ui.link{
    46             module = "unit", view = "list",
    47             text = _"show all units"
    48           }
    49         end }
    50       end } 
    51     end )
    52     if config.download_dir then
    53       ui.sidebarSection( function()
    54         ui.heading { level = 3, content = _"I want to download all data" }
    55         ui.tag { tag = "ul", attr = { class = "ul" }, content = function ()
    56           ui.tag { tag = "li", content = function ()
    57             ui.link{
    58               module = "index", view = "download",
    59               text = _"download database"
    60             }
    61           end }
    62         end } 
    63       end )
    64     end
    65   end
    66   ui.sidebarSection( function()
    67     ui.heading { level = 3, content = _"I want to learn more about LiquidFeedback" }
    68     ui.tag { tag = "ul", attr = { class = "ul" }, content = function ()
    69       ui.tag { tag = "li", content = function()
    70         ui.link { module = "help", view = "introduction", content = _"structured discussion" }
    71       end }
    72       ui.tag { tag = "li", content = function()
    73         ui.link { module = "help", view = "introduction", content = _"4 phases of a decision" }
    74       end }
    75       ui.tag { tag = "li", content = function()
    76         ui.link { module = "help", view = "introduction", content = _"vote delegation" }
    77       end }
    78       ui.tag { tag = "li", content = function()
    79         ui.link { module = "help", view = "introduction", content = _"preference voting" }
    80       end }
    81     end } 
    82   end )
    84 end )
