liquid_feedback_frontend
diff app/main/vote/list.lua @ 286:c587d8762e62
Registration process updated for Core 2.0, lockable member fields, notification settings
| author | bsw | 
|---|---|
| date | Sat Feb 25 11:51:37 2012 +0100 (2012-02-25) | 
| parents | 6c88b4bfb56c | 
| children | 24f8920e05f1 | 
   line diff
1.1 --- a/app/main/vote/list.lua Fri Feb 17 15:16:02 2012 +0100 1.2 +++ b/app/main/vote/list.lua Sat Feb 25 11:51:37 2012 +0100 1.3 @@ -401,16 +401,32 @@ 1.4 content = function() 1.5 ui.tag{ content = "i" .. initiative.id .. ": " } 1.6 ui.tag{ content = initiative.shortened_name } 1.7 - if #initiators > 1 then 1.8 - ui.container{ 1.9 - attr = { style = "font-size: 80%;" }, 1.10 - content = _"Initiators" .. ": " .. initiator_names_string 1.11 + slot.put("<br />") 1.12 + for i, initiator in ipairs(initiators) do 1.13 + ui.link{ 1.14 + attr = { class = "clickable" }, 1.15 + content = function () 1.16 + execute.view{ 1.17 + module = "member_image", 1.18 + view = "_show", 1.19 + params = { 1.20 + member = initiator, 1.21 + image_type = "avatar", 1.22 + show_dummy = true, 1.23 + class = "micro_avatar", 1.24 + popup_text = text 1.25 + } 1.26 + } 1.27 + end, 1.28 + module = "member", view = "show", id = initiator.id 1.29 } 1.30 - else 1.31 - ui.container{ 1.32 - attr = { style = "font-size: 80%;" }, 1.33 - content = _"Initiator" .. ": " .. initiator_names_string 1.34 + slot.put(" ") 1.35 + ui.link{ 1.36 + attr = { class = "clickable" }, 1.37 + text = initiator.name, 1.38 + module = "member", view = "show", id = initiator.id 1.39 } 1.40 + slot.put(" ") 1.41 end 1.42 end 1.43 }