liquid_feedback_frontend

diff app/main/interest/_show_box.lua @ 243:ec86db506312

Removed autoreject support (which was removed from core-2)
author bsw
date Fri Dec 30 03:04:17 2011 +0100 (2011-12-30)
parents 3f179402127f
children bde068b37608
line diff
     1.1 --- a/app/main/interest/_show_box.lua	Fri Dec 30 03:02:09 2011 +0100
     1.2 +++ b/app/main/interest/_show_box.lua	Fri Dec 30 03:04:17 2011 +0100
     1.3 @@ -12,7 +12,7 @@
     1.4      content = function()
     1.5          ui.container{
     1.6            attr = { 
     1.7 -            class = "head head_active" .. (interest.autoreject and " head_autoreject" or ""),
     1.8 +            class = "head head_active",
     1.9              onclick = "document.getElementById('interest_content').style.display = 'block';"
    1.10            },
    1.11            content = function()
    1.12 @@ -21,20 +21,6 @@
    1.13              }
    1.14              slot.put(_"Your are interested")
    1.15  
    1.16 -            if interest.autoreject == true or
    1.17 -              (interest.autoreject == nil and membership and membership.autoreject == true)
    1.18 -            then
    1.19 -              ui.image{
    1.20 -                static = "icons/16/thumb_down_red.png"
    1.21 -              }
    1.22 -            end
    1.23 -
    1.24 -            if interest.autoreject == false then
    1.25 -              ui.image{
    1.26 -                static = "icons/16/thumb_down_red_crossed.png"
    1.27 -              }
    1.28 -            end
    1.29 -
    1.30              ui.image{
    1.31                static = "icons/16/dropdown.png"
    1.32              }
    1.33 @@ -65,72 +51,6 @@
    1.34                slot.put("<br />")
    1.35                slot.put("<br />")
    1.36              end
    1.37 -            if interest.autoreject == nil then
    1.38 -              if membership then
    1.39 -                if membership.autoreject then
    1.40 -                  ui.field.text{ value = _"Autoreject is inherited from area. (Currently turned on)" }
    1.41 -                else
    1.42 -                  ui.field.text{ value = _"Autoreject is inherited from area. (Currently turned off)" }
    1.43 -                end
    1.44 -              else
    1.45 -                ui.field.text{ value = _"Autoreject is inherited from area. (No member of this area)" }
    1.46 -              end
    1.47 -              slot.put("<br />")
    1.48 -              if issue.state ~= "finished" and issue.state ~= "cancelled" then
    1.49 -                ui.link{
    1.50 -                  text    = _"Turn on autoreject for issue",
    1.51 -                  module  = "interest",
    1.52 -                  action  = "update",
    1.53 -                  params  = { issue_id = issue.id, autoreject = true },
    1.54 -                  routing = { default = { mode = "redirect", module = "issue", view = "show", id = issue.id } }
    1.55 -                }
    1.56 -                ui.link{
    1.57 -                  text    = _"Turn off autoreject for issue",
    1.58 -                  module  = "interest",
    1.59 -                  action  = "update",
    1.60 -                  params  = { issue_id = issue.id, autoreject = false },
    1.61 -                  routing = { default = { mode = "redirect", module = "issue", view = "show", id = issue.id } }
    1.62 -                }
    1.63 -              end
    1.64 -            elseif interest.autoreject == true then
    1.65 -              ui.field.text{ value = _"Autoreject for this issue is turned on." }
    1.66 -              slot.put("<br />")
    1.67 -              if issue.state ~= "finished" and issue.state ~= "cancelled" then
    1.68 -                ui.link{
    1.69 -                  text    = _"Inherit autoreject from area",
    1.70 -                  module  = "interest",
    1.71 -                  action  = "update",
    1.72 -                  params  = { issue_id = issue.id, autoreject = nil },
    1.73 -                  routing = { default = { mode = "redirect", module = "issue", view = "show", id = issue.id } }
    1.74 -                }
    1.75 -                ui.link{
    1.76 -                  text    = _"Turn off autoreject for issue",
    1.77 -                  module  = "interest",
    1.78 -                  action  = "update",
    1.79 -                  params  = { issue_id = issue.id, autoreject = false },
    1.80 -                  routing = { default = { mode = "redirect", module = "issue", view = "show", id = issue.id } }
    1.81 -                }
    1.82 -              end
    1.83 -            elseif interest.autoreject == false then
    1.84 -              ui.field.text{ value = _"Autoreject for this issue is turned off." }
    1.85 -              slot.put("<br />")
    1.86 -              if issue.state ~= "finished" and issue.state ~= "cancelled" then
    1.87 -                ui.link{
    1.88 -                  text    = _"Inherit autoreject from area",
    1.89 -                  module  = "interest",
    1.90 -                  action  = "update",
    1.91 -                  params  = { issue_id = issue.id, autoreject = nil },
    1.92 -                  routing = { default = { mode = "redirect", module = "issue", view = "show", id = issue.id } }
    1.93 -                }
    1.94 -                ui.link{
    1.95 -                  text    = _"Turn on autoreject for issue",
    1.96 -                  module  = "interest",
    1.97 -                  action  = "update",
    1.98 -                  params  = { issue_id = issue.id, autoreject = true },
    1.99 -                  routing = { default = { mode = "redirect", module = "issue", view = "show", id = issue.id } }
   1.100 -                }
   1.101 -              end
   1.102 -            end
   1.103            end
   1.104          }
   1.105        end
   1.106 @@ -147,4 +67,4 @@
   1.107        routing = { default = { mode = "redirect", module = "issue", view = "show", id = issue.id } }
   1.108      }
   1.109    end
   1.110 -end
   1.111 \ No newline at end of file
   1.112 +end

Impressum / About Us