liquid_feedback_frontend

annotate app/main/initiative/show_partial.lua @ 52:88ac7798b562

Several bugfixes (getpic.c, accepted but canceled issues, ...); Listing of available policies

- Bugfixes in fastpath/getpic.c (related to crashes since alpha5)
- Respect Content-Types of images in database
(needs database update, as Content-Type was incorrectly stored by previous versions)
- Typo fixed in help messages
- RSS-Feed (currently only after manual authentication while session is valid)
- Listing of available policies
- German translation fixed: "gebe" -> "gib" (Imperativ)
- Bugfixes related to issues which had been accepted but canceled afterwards
- Prohibit creation of initiatives in disabled areas or with disabled policies
author bsw/jbe
date Thu Apr 15 19:58:25 2010 +0200 (2010-04-15)
parents 0849be391140
children
rev   line source
bsw/jbe@19 1 local initiative = param.get("initiative", "table")
bsw/jbe@19 2 local expanded = param.get("expanded", atom.boolean)
bsw/jbe@19 3
bsw/jbe@19 4 if not initiative then
bsw/jbe@19 5 initiative = Initiative:by_id(param.get_id())
bsw/jbe@19 6 expanded = true
bsw/jbe@19 7 end
bsw/jbe@19 8
bsw/jbe@19 9 -- TODO performance
bsw@51 10 local initiator
bsw@51 11 if app.session.member_id then
bsw@51 12 initiator = Initiator:by_pk(initiative.id, app.session.member.id)
bsw@51 13 end
bsw/jbe@19 14
bsw/jbe@19 15 ui.partial{
bsw/jbe@19 16 module = "initiative",
bsw/jbe@19 17 view = "show",
bsw/jbe@19 18 id = initiative.id,
bsw/jbe@19 19 target = "initiative_content_" .. tostring(initiative.id) .. "_content",
bsw/jbe@19 20 content = function()
bsw/jbe@19 21 if expanded then
bsw/jbe@19 22 execute.view{
bsw/jbe@19 23 module = "initiative",
bsw/jbe@19 24 view = "_show",
bsw/jbe@19 25 params = {
bsw/jbe@19 26 initiative = initiative,
bsw/jbe@19 27 initiator = initiator
bsw/jbe@19 28 }
bsw/jbe@19 29 }
bsw/jbe@19 30 else
bsw/jbe@19 31 slot.put(" ")
bsw/jbe@19 32 end
bsw/jbe@19 33 end
bsw/jbe@19 34 }

Impressum / About Us