liquid_feedback_frontend
diff app/main/initiative/_show.lua @ 458:0e25d0459b5f
Do not show avatars public
author | bsw |
---|---|
date | Mon Mar 12 20:27:31 2012 +0100 (2012-03-12) |
parents | 9ce4da0e0783 |
children | 01cf3c50cbee |
line diff
1.1 --- a/app/main/initiative/_show.lua Mon Mar 12 18:46:30 2012 +0100 1.2 +++ b/app/main/initiative/_show.lua Mon Mar 12 20:27:31 2012 +0100 1.3 @@ -39,23 +39,25 @@ 1.4 content = function() 1.5 for i, initiator in ipairs(initiators) do 1.6 slot.put(" ") 1.7 - ui.link{ 1.8 - content = function () 1.9 - execute.view{ 1.10 - module = "member_image", 1.11 - view = "_show", 1.12 - params = { 1.13 - member = initiator, 1.14 - image_type = "avatar", 1.15 - show_dummy = true, 1.16 - class = "micro_avatar", 1.17 - popup_text = text 1.18 + if app.session.member_id then 1.19 + ui.link{ 1.20 + content = function () 1.21 + execute.view{ 1.22 + module = "member_image", 1.23 + view = "_show", 1.24 + params = { 1.25 + member = initiator, 1.26 + image_type = "avatar", 1.27 + show_dummy = true, 1.28 + class = "micro_avatar", 1.29 + popup_text = text 1.30 + } 1.31 } 1.32 - } 1.33 - end, 1.34 - module = "member", view = "show", id = initiator.id 1.35 - } 1.36 - slot.put(" ") 1.37 + end, 1.38 + module = "member", view = "show", id = initiator.id 1.39 + } 1.40 + slot.put(" ") 1.41 + end 1.42 ui.link{ 1.43 text = initiator.name, 1.44 module = "member", view = "show", id = initiator.id