liquid_feedback_frontend

diff app/main/area/show.lua @ 51:0849be391140

Public read access; Read-only API for initiatives; Prepared integration of OpenID
author bsw
date Sun Apr 04 22:05:11 2010 +0200 (2010-04-04)
parents 00d1004545f1
children 88ac7798b562
line diff
     1.1 --- a/app/main/area/show.lua	Wed Mar 31 17:50:32 2010 +0200
     1.2 +++ b/app/main/area/show.lua	Sun Apr 04 22:05:11 2010 +0200
     1.3 @@ -9,32 +9,36 @@
     1.4    end
     1.5  }
     1.6  
     1.7 -
     1.8 -slot.select("actions", function()
     1.9 -  ui.link{
    1.10 -    content = function()
    1.11 -      ui.image{ static = "icons/16/folder_add.png" }
    1.12 -      slot.put(_"Create new issue")
    1.13 -    end,
    1.14 -    module = "initiative",
    1.15 -    view = "new",
    1.16 -    params = { area_id = area.id }
    1.17 -  }
    1.18 -end)
    1.19 +if app.session.member_id then
    1.20 +  slot.select("actions", function()
    1.21 +    ui.link{
    1.22 +      content = function()
    1.23 +        ui.image{ static = "icons/16/folder_add.png" }
    1.24 +        slot.put(_"Create new issue")
    1.25 +      end,
    1.26 +      module = "initiative",
    1.27 +      view = "new",
    1.28 +      params = { area_id = area.id }
    1.29 +    }
    1.30 +  end)
    1.31 +end
    1.32  
    1.33  util.help("area.show")
    1.34  
    1.35 -execute.view{
    1.36 -  module = "membership",
    1.37 -  view = "_show_box",
    1.38 -  params = { area = area }
    1.39 -}
    1.40 +if app.session.member_id then
    1.41 +  execute.view{
    1.42 +    module = "membership",
    1.43 +    view = "_show_box",
    1.44 +    params = { area = area }
    1.45 +  }
    1.46  
    1.47 -execute.view{
    1.48 -  module = "delegation",
    1.49 -  view = "_show_box",
    1.50 -  params = { area_id = area.id }
    1.51 -}
    1.52 +  execute.view{
    1.53 +    module = "delegation",
    1.54 +    view = "_show_box",
    1.55 +    params = { area_id = area.id }
    1.56 +  }
    1.57 +
    1.58 +end
    1.59  
    1.60  --[[
    1.61  for i, issue in ipairs(area.issues) do

Impressum / About Us