liquid_feedback_frontend
diff app/main/initiative/_show.lua @ 276:f460555c9896
Code cleanup
author | bsw |
---|---|
date | Sun Feb 12 20:03:26 2012 +0100 (2012-02-12) |
parents | aec9df5b4cd3 |
children | fecd4c13054a |
line diff
1.1 --- a/app/main/initiative/_show.lua Sun Feb 12 13:42:08 2012 +0100 1.2 +++ b/app/main/initiative/_show.lua Sun Feb 12 20:03:26 2012 +0100 1.3 @@ -30,24 +30,26 @@ 1.4 attr = { class = "initiative_name" }, 1.5 content = _("Initiative i#{id}: #{name}", { id = initiative.id, name = initiative.name }) 1.6 } 1.7 - ui.tag{ 1.8 - attr = { class = "initiator_names" }, 1.9 - content = function() 1.10 - ui.tag{ content = _"by" } 1.11 - slot.put(" ") 1.12 - for i, initiator in ipairs(initiators) do 1.13 - if i == #initiators and i > 1 then 1.14 - slot.put(" ", _"and", " ") 1.15 - elseif i > 1 then 1.16 - slot.put(", ") 1.17 + if app.session.member_id or config.public_access == "pseudonym" or config.public_access == "full" then 1.18 + ui.tag{ 1.19 + attr = { class = "initiator_names" }, 1.20 + content = function() 1.21 + ui.tag{ content = _"by" } 1.22 + slot.put(" ") 1.23 + for i, initiator in ipairs(initiators) do 1.24 + if i == #initiators and i > 1 then 1.25 + slot.put(" ", _"and", " ") 1.26 + elseif i > 1 then 1.27 + slot.put(", ") 1.28 + end 1.29 + ui.link{ 1.30 + text = initiator.name, 1.31 + module = "member", view = "show", id = initiator.id 1.32 + } 1.33 end 1.34 - ui.link{ 1.35 - text = initiator.name, 1.36 - module = "member", view = "show", id = initiator.id 1.37 - } 1.38 end 1.39 - end 1.40 - } 1.41 + } 1.42 + end 1.43 1.44 if initiator and initiator.accepted and not initiative.issue.fully_frozen and not initiative.issue.closed and not initiative.revoked then 1.45 slot.put(" · ")