liquid_feedback_frontend

diff app/main/unit/show.lua @ 1309:32cc544d5a5b

Cumulative patch for upcoming frontend version 4
author bsw/jbe
date Sun Jul 15 14:07:29 2018 +0200 (2018-07-15)
parents 8288027edb54
children 2a0d86117d54
line diff
     1.1 --- a/app/main/unit/show.lua	Thu Jun 23 03:30:57 2016 +0200
     1.2 +++ b/app/main/unit/show.lua	Sun Jul 15 14:07:29 2018 +0200
     1.3 @@ -8,6 +8,7 @@
     1.4    return
     1.5  end
     1.6  
     1.7 +app.current_unit = unit
     1.8  
     1.9  unit:load_delegation_info_once_for_member_id(app.session.member_id)
    1.10  
    1.11 @@ -38,36 +39,40 @@
    1.12    :add_where("issue.closed NOTNULL")
    1.13    :add_order_by("issue.closed DESC")
    1.14  
    1.15 -  
    1.16 -
    1.17 -execute.view { module = "unit", view = "_head", params = { unit = unit } }
    1.18 -
    1.19 +  ui.container{ attr = { class = "mdl-grid" }, content = function()
    1.20 +    ui.container{ attr = { class = "mdl-cell mdl-cell--12-col" }, content = function()
    1.21 +        
    1.22 +      ui.heading{ content = unit.name }
    1.23  
    1.24 -execute.view { 
    1.25 -  module = "unit", view = "_sidebar", params = { 
    1.26 -    unit = unit
    1.27 -  }
    1.28 -}
    1.29 +      execute.view { module = "unit", view = "_head", params = { unit = unit } }
    1.30 +
    1.31 +      execute.view { 
    1.32 +        module = "unit", view = "_sidebar", params = { 
    1.33 +          unit = unit
    1.34 +        }
    1.35 +      }
    1.36  
    1.37 -execute.view { 
    1.38 -  module = "unit", view = "_sidebar_whatcanido", params = { 
    1.39 -    unit = unit
    1.40 -  }
    1.41 -}
    1.42 +      execute.view { 
    1.43 +        module = "unit", view = "_sidebar_whatcanido", params = { 
    1.44 +          unit = unit
    1.45 +        }
    1.46 +      }
    1.47  
    1.48 -execute.view { 
    1.49 -  module = "unit", view = "_sidebar_members", params = { 
    1.50 -    unit = unit
    1.51 -  }
    1.52 -}
    1.53 +      execute.view { 
    1.54 +        module = "unit", view = "_sidebar_members", params = { 
    1.55 +          unit = unit
    1.56 +        }
    1.57 +      }
    1.58  
    1.59 -execute.view {
    1.60 -  module = "issue",
    1.61 -  view = "_list2",
    1.62 -  params = { for_unit = unit, head = function ()
    1.63 -    ui.heading { attr = { class = "left" }, level = 1, content = unit.name }
    1.64 +      execute.view {
    1.65 +        module = "issue",
    1.66 +        view = "_list",
    1.67 +        params = { for_unit = unit, head = function ()
    1.68 +          ui.heading { attr = { class = "left" }, level = 1, content = unit.name }
    1.69 +        end }
    1.70 +      }
    1.71 +    end }
    1.72    end }
    1.73 -}
    1.74  
    1.75  --[[
    1.76  if app.session:has_access("all_pseudonymous") then
    1.77 @@ -90,4 +95,4 @@
    1.78  
    1.79  ui.tabs(tabs)
    1.80  
    1.81 ---]]
    1.82 \ No newline at end of file
    1.83 +--]]

Impressum / About Us