liquid_feedback_frontend

changeset 1625:0f4302e67eb6

Removed not used view
author bsw
date Mon Feb 08 00:58:05 2021 +0100 (2021-02-08)
parents 6a332e93e1f8
children 94ce1cd67435
files app/main/initiative/_sidebar_support.lua
line diff
     1.1 --- a/app/main/initiative/_sidebar_support.lua	Mon Feb 08 00:57:39 2021 +0100
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,108 +0,0 @@
     1.4 -if not app.session.member then
     1.5 -  return
     1.6 -end
     1.7 -
     1.8 -local initiative = param.get("initiative", "table")
     1.9 -
    1.10 -local initiative_info = initiative.member_info
    1.11 -local issue_info = initiative.issue.member_info
    1.12 -
    1.13 -local active_trustee_id
    1.14 -if not issue_info.own_participation then
    1.15 -  if issue_info.first_trustee_participation then
    1.16 -    active_trustee_id = issue_info.first_trustee_id
    1.17 -  elseif issue_info.other_trustee_participation then
    1.18 -    active_trustee_id = issue_info.other_trustee_id
    1.19 -  end
    1.20 -end
    1.21 -
    1.22 -
    1.23 -slot.select ( "sidebar", function ()
    1.24 -  
    1.25 -  if 
    1.26 -    not initiative.issue.fully_frozen
    1.27 -    and not initiative.issue.closed
    1.28 -    and (issue_info.own_participation or active_trustee_id)
    1.29 -  then
    1.30 -    ui.container {
    1.31 -      attr = { class = "tab-whatcanido sidebarSection" },
    1.32 -      content = function ()
    1.33 -
    1.34 -        
    1.35 -        if initiative_info.supported then
    1.36 -          ui.heading { level = 1, content = function ()
    1.37 -            ui.tag { content = _"I'm supporting this initiative" }
    1.38 -            if issue_info.weight then
    1.39 -              slot.put ( " " )
    1.40 -              ui.link {
    1.41 -                module = "delegation", view = "show_incoming", params = {
    1.42 -                  issue_id = initiative.issue_id,
    1.43 -                  member_id = app.session.member_id
    1.44 -                },
    1.45 -                content = "+" .. issue_info.weight
    1.46 -              }
    1.47 -            end
    1.48 -          end }
    1.49 -          
    1.50 -        else
    1.51 -          ui.heading { level = 1, content = function ()
    1.52 -            ui.tag { content = _"I'm interested in this issue" }
    1.53 -            if issue_info.weight then
    1.54 -              slot.put ( " " )
    1.55 -              ui.link {
    1.56 -                module = "delegation", view = "show_incoming", params = {
    1.57 -                  issue_id = initiative.issue_id,
    1.58 -                  member_id = app.session.member_id
    1.59 -                },
    1.60 -                content = "+" .. issue_info.weight
    1.61 -              }
    1.62 -            end
    1.63 -          end }
    1.64 -        end
    1.65 -
    1.66 -        if active_trustee_id then
    1.67 -          ui.tag { content = _"via delegation" }
    1.68 -        elseif issue_info.first_trustee_id then
    1.69 -          ui.tag { content = _"delegation suspended during discussion" }
    1.70 -        end
    1.71 -      end
    1.72 -    }
    1.73 -  end
    1.74 -      
    1.75 -  if 
    1.76 -    initiative.issue.fully_frozen and
    1.77 -    (issue_info.direct_voted or active_trustee_id)
    1.78 -  then
    1.79 -    ui.container {
    1.80 -      attr = { class = "tab-whatcanido sidebarSection" },
    1.81 -      content = function ()
    1.82 -      
    1.83 -        if issue_info.direct_voted then
    1.84 -          ui.heading { level = 1, content = _"You have been voted" }
    1.85 -          ui.link {
    1.86 -            content = _"Show my voting ballot",
    1.87 -            module = "vote", view = "list", params = {
    1.88 -              issue_id = initiative.issue.id
    1.89 -            }
    1.90 -          }
    1.91 -        else
    1.92 -          
    1.93 -          
    1.94 -          if active_trustee_id then
    1.95 -            ui.heading { level = 1, content = _"You have been voted" }
    1.96 -            ui.container { 
    1.97 -              content = _"via delegation"
    1.98 -            }
    1.99 -            ui.link {
   1.100 -              content = _"Show voting ballot",
   1.101 -              module = "vote", view = "list", params = {
   1.102 -                issue_id = initiative.issue.id, member_id = active_trustee_id
   1.103 -              }
   1.104 -            }
   1.105 -          end
   1.106 -        end
   1.107 -      end
   1.108 -    }
   1.109 -  end
   1.110 -end )
   1.111 -        
   1.112 \ No newline at end of file

Impressum / About Us