liquid_feedback_frontend

diff app/main/interest/_show_box.lua @ 5:afd9f769c7ae

Version beta1

Final voting with Schulze-Method is now possible

Many bug fixes and code cleanup

Registration with invite codes

More sort and filter options

Seperated display of "supporters" and "potential supporters"

Optical changes

Flood limit / initiative contigent is now checked by frontend

Neccessary changes to access core beta11
author bsw/jbe
date Fri Dec 25 12:00:00 2009 +0100 (2009-12-25)
parents 80c215dbf076
children 559c6be0e1e9
line diff
     1.1 --- a/app/main/interest/_show_box.lua	Thu Dec 10 12:00:00 2009 +0100
     1.2 +++ b/app/main/interest/_show_box.lua	Fri Dec 25 12:00:00 2009 +0100
     1.3 @@ -15,6 +15,9 @@
     1.4              onclick = "document.getElementById('interest_content').style.display = 'block';"
     1.5            },
     1.6            content = function()
     1.7 +            ui.image{
     1.8 +              static = "icons/16/eye.png"
     1.9 +            }
    1.10              slot.put(_"Your are interested")
    1.11              ui.image{
    1.12                static = "icons/16/dropdown.png"
    1.13 @@ -35,33 +38,39 @@
    1.14                  ui.image{ static = "icons/16/cross.png" }
    1.15                end
    1.16              }
    1.17 -            ui.link{
    1.18 -              content = _"Remove my interest",
    1.19 -              module = "interest",
    1.20 -              action = "update",
    1.21 -              params = { issue_id = issue.id, delete = true },
    1.22 -              routing = { default = { mode = "redirect", module = "issue", view = "show", id = issue.id } }
    1.23 -            }
    1.24 -            slot.put("<br />")
    1.25 -            slot.put("<br />")
    1.26 +            if issue.state ~= "finished" and issue.state ~= "cancelled" and issue.state ~= "voting" then
    1.27 +              ui.link{
    1.28 +                content = _"Remove my interest",
    1.29 +                module = "interest",
    1.30 +                action = "update",
    1.31 +                params = { issue_id = issue.id, delete = true },
    1.32 +                routing = { default = { mode = "redirect", module = "issue", view = "show", id = issue.id } }
    1.33 +              }
    1.34 +              slot.put("<br />")
    1.35 +              slot.put("<br />")
    1.36 +            end
    1.37              if interest.autoreject then
    1.38                ui.field.text{ value = _"Autoreject is on." }
    1.39 -              ui.link{
    1.40 -                content = _"Remove autoreject",
    1.41 -                module = "interest",
    1.42 -                action = "update",
    1.43 -                params = { issue_id = issue.id, autoreject = false },
    1.44 -                routing = { default = { mode = "redirect", module = "issue", view = "show", id = issue.id } }
    1.45 -              }
    1.46 +              if issue.state ~= "finished" and issue.state ~= "cancelled" then
    1.47 +                ui.link{
    1.48 +                  content = _"Remove autoreject",
    1.49 +                  module = "interest",
    1.50 +                  action = "update",
    1.51 +                  params = { issue_id = issue.id, autoreject = false },
    1.52 +                  routing = { default = { mode = "redirect", module = "issue", view = "show", id = issue.id } }
    1.53 +                }
    1.54 +              end
    1.55              else
    1.56                ui.field.text{ value = _"Autoreject is off." }
    1.57 -              ui.link{
    1.58 -                content = _"Set autoreject",
    1.59 -                module = "interest",
    1.60 -                action = "update",
    1.61 -                params = { issue_id = issue.id, autoreject = true },
    1.62 -                routing = { default = { mode = "redirect", module = "issue", view = "show", id = issue.id } }
    1.63 -              }
    1.64 +              if issue.state ~= "finished" and issue.state ~= "cancelled" then
    1.65 +                ui.link{
    1.66 +                  content = _"Set autoreject",
    1.67 +                  module = "interest",
    1.68 +                  action = "update",
    1.69 +                  params = { issue_id = issue.id, autoreject = true },
    1.70 +                  routing = { default = { mode = "redirect", module = "issue", view = "show", id = issue.id } }
    1.71 +                }
    1.72 +              end
    1.73              end
    1.74            end
    1.75          }

Impressum / About Us