liquid_feedback_frontend

diff app/main/initiative/show_static.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 cfc2b9aeca91
children bf885faf3452
line diff
     1.1 --- a/app/main/initiative/show_static.lua	Wed Mar 31 17:50:32 2010 +0200
     1.2 +++ b/app/main/initiative/show_static.lua	Sun Apr 04 22:05:11 2010 +0200
     1.3 @@ -24,19 +24,20 @@
     1.4  
     1.5  --slot.put_into("html_head", '<link rel="alternate" type="application/rss+xml" title="RSS" href="../show/' .. tostring(initiative.id) .. '.rss" />')
     1.6  
     1.7 -
     1.8 -slot.select("actions", function()
     1.9 -  if not initiative.issue.fully_frozen and not initiative.issue.closed then
    1.10 -    ui.link{
    1.11 -      image  = { static = "icons/16/script_add.png" },
    1.12 -      attr   = { class = "action" },
    1.13 -      text   = _"Create alternative initiative",
    1.14 -      module = "initiative",
    1.15 -      view   = "new",
    1.16 -      params = { issue_id = initiative.issue.id }
    1.17 -    }
    1.18 -  end
    1.19 -end)
    1.20 +if app.session.member_id then
    1.21 +  slot.select("actions", function()
    1.22 +    if not initiative.issue.fully_frozen and not initiative.issue.closed then
    1.23 +      ui.link{
    1.24 +        image  = { static = "icons/16/script_add.png" },
    1.25 +        attr   = { class = "action" },
    1.26 +        text   = _"Create alternative initiative",
    1.27 +        module = "initiative",
    1.28 +        view   = "new",
    1.29 +        params = { issue_id = initiative.issue.id }
    1.30 +      }
    1.31 +    end
    1.32 +  end)
    1.33 +end
    1.34  
    1.35  slot.put_into("sub_title", encode.html(_("Initiative: '#{name}'", { name = initiative.name }) ))
    1.36  

Impressum / About Us