liquid_feedback_frontend

diff app/main/suggestion/_list.lua @ 2:5c601807d397

Version alpha3

Dark green part of issue supporter bargraph represents all satisfied supporters, regardless of having seen the latest draft

Wiki formatting for drafts

Showing differences between two drafts of the same initiative

Display of outgoing delegation chains

Many other improvements
author bsw
date Mon Nov 23 12:00:00 2009 +0100 (2009-11-23)
parents dd0109e81922
children 768faea1096d
line diff
     1.1 --- a/app/main/suggestion/_list.lua	Wed Nov 18 12:00:00 2009 +0100
     1.2 +++ b/app/main/suggestion/_list.lua	Mon Nov 23 12:00:00 2009 +0100
     1.3 @@ -4,6 +4,7 @@
     1.4    selector = suggestions_selector,
     1.5    content = function()
     1.6      ui.list{
     1.7 +      attr = { style = "table-layout: fixed;" },
     1.8        records = suggestions_selector:exec(),
     1.9        columns = {
    1.10          {
    1.11 @@ -24,7 +25,7 @@
    1.12                local max_value = record.initiative.issue.population
    1.13                ui.bargraph{
    1.14                  max_value = max_value,
    1.15 -                width = 50,
    1.16 +                width = 100,
    1.17                  bars = {
    1.18                    { color = "#ddd", value = max_value - record.minus2_unfulfilled_count - record.minus1_unfulfilled_count - record.minus2_fulfilled_count - record.minus1_fulfilled_count },
    1.19                    { color = "#f88", value = record.minus1_unfulfilled_count + record.minus1_fulfilled_count },
    1.20 @@ -102,13 +103,14 @@
    1.21            end
    1.22          },
    1.23          {
    1.24 -          label = _"Not fullfilled",
    1.25 +          label = _"Suggestion currently not implemented",
    1.26 +          label_attr = { style = "width: 101px;" },
    1.27            content = function(record)
    1.28              if record.minus2_unfulfilled_count then
    1.29                local max_value = record.initiative.issue.population
    1.30                ui.bargraph{
    1.31                  max_value = max_value,
    1.32 -                width = 50,
    1.33 +                width = 100,
    1.34                  bars = {
    1.35                    { color = "#ddd", value = max_value - record.minus2_unfulfilled_count - record.minus1_unfulfilled_count },
    1.36                    { color = "#f88", value = record.minus1_unfulfilled_count },
    1.37 @@ -122,13 +124,14 @@
    1.38            end
    1.39          },
    1.40          {
    1.41 -          label = _"Fullfilled",
    1.42 +          label = _"Suggestion currently implemented",
    1.43 +          label_attr = { style = "width: 101px;" },
    1.44            content = function(record)
    1.45              if record.minus2_fulfilled_count then
    1.46                local max_value = record.initiative.issue.population
    1.47                ui.bargraph{
    1.48                  max_value = max_value,
    1.49 -                width = 50,
    1.50 +                width = 100,
    1.51                  bars = {
    1.52                    { color = "#ddd", value = max_value - record.minus2_fulfilled_count - record.minus1_fulfilled_count },
    1.53                    { color = "#f88", value = record.minus1_fulfilled_count },
    1.54 @@ -153,7 +156,7 @@
    1.55                  ui.image{ static = "icons/16/cross.png" }
    1.56                  ui.link{
    1.57                    attr = { class = "action" },
    1.58 -                  text = _"set fulfilled",
    1.59 +                  text = _"set implented",
    1.60                    module = "opinion",
    1.61                    action = "update",
    1.62                    routing = { default = { mode = "redirect", module = request.get_module(), view = request.get_view(), id = param.get_id_cgi(), params = param.get_all_cgi() } },
    1.63 @@ -166,7 +169,7 @@
    1.64                  ui.image{ static = "icons/16/tick.png" }
    1.65                  ui.link{
    1.66                    attr = { class = "action" },
    1.67 -                  text = _"remove fulfilled",
    1.68 +                  text = _"remove implemented",
    1.69                    module = "opinion",
    1.70                    action = "update",
    1.71                    routing = { default = { mode = "redirect", module = request.get_module(), view = request.get_view(), id = param.get_id_cgi(), params = param.get_all_cgi() } },

Impressum / About Us