liquid_feedback_frontend
annotate app/main/survey/index.lua @ 1853:9c298b5832e7
Correctly determine own voting weight
author | bsw |
---|---|
date | Tue Mar 22 13:52:26 2022 +0100 (2022-03-22) |
parents | 5a8a09119865 |
children |
rev | line source |
---|---|
bsw@1735 | 1 ui.heading{ level = 1, content = _"Surveys" } |
bsw@1735 | 2 |
bsw@1735 | 3 local surveys = Survey:get_open() |
bsw@1735 | 4 |
bsw@1735 | 5 for i, survey in ipairs(surveys) do |
bsw@1735 | 6 |
bsw@1735 | 7 ui.container{ content = function() |
bsw@1735 | 8 |
bsw@1735 | 9 ui.link{ module = "survey", view = "participate", id = survey.id, content = survey.name } |
bsw@1735 | 10 |
bsw@1735 | 11 ui.container{ content = survey.description } |
bsw@1735 | 12 |
bsw@1735 | 13 end } |
bsw@1735 | 14 |
bsw@1735 | 15 end |