liquid_feedback_frontend

annotate app/main/initiative/show_support.lua @ 271:d13b27a37ad5

Optical enhancements, some repositioning of ui elements
author bsw
date Tue Feb 07 22:30:48 2012 +0100 (2012-02-07)
parents 00d1004545f1
children 7196685f9dd7
rev   line source
bsw/jbe@19 1 local initiative = param.get("initiative", "table") or Initiative:by_id(param.get_id())
bsw/jbe@19 2
bsw/jbe@19 3 -- TODO performance
bsw/jbe@19 4 local initiator = Initiator:by_pk(initiative.id, app.session.member.id)
bsw/jbe@19 5
bsw/jbe@19 6 ui.partial{
bsw/jbe@19 7 module = "initiative",
bsw/jbe@19 8 view = "show_support",
bsw/jbe@19 9 id = initiative.id,
bsw/jbe@19 10 target = "initiative_" .. tostring(initiative.id) .. "_support",
bsw/jbe@19 11 content = function()
bsw/jbe@19 12 ui.container{
bsw/jbe@19 13 attr = {
bsw/jbe@19 14 class = "slot_support vote_info",
bsw/jbe@19 15 },
bsw/jbe@19 16 content = function()
bsw/jbe@19 17 ui.container{
bsw/jbe@19 18 attr = { class = "actions" },
bsw/jbe@19 19 content = function()
bsw/jbe@19 20 execute.view{
bsw/jbe@19 21 module = "supporter",
bsw/jbe@19 22 view = "_show_box",
bsw/jbe@19 23 params = { initiative = initiative }
bsw/jbe@19 24 }
bsw/jbe@19 25 end
bsw/jbe@19 26 }
bsw/jbe@19 27 end
bsw/jbe@19 28 }
bsw/jbe@19 29 slot.put("<div style='clear: left;'></div>")
bsw/jbe@19 30 end
bsw/jbe@19 31 }

Impressum / About Us