liquid_feedback_frontend

annotate app/main/initiative/list_rss.lua @ 38:2c7cc99c4e8e

translated all missing entries
author Dinu Gherman
date Fri Mar 05 15:45:55 2010 +0100 (2010-03-05)
parents 00d1004545f1
children 88ac7798b562
rev   line source
bsw/jbe@19 1 slot.set_layout("atom")
bsw/jbe@19 2
bsw/jbe@19 3 request.force_absolute_baseurl()
bsw/jbe@19 4
bsw/jbe@19 5 local initiatives = Initiative:new_selector()
bsw/jbe@19 6 :add_order_by("id DESC")
bsw/jbe@19 7 :limit(25)
bsw/jbe@19 8 :exec()
bsw/jbe@19 9
bsw/jbe@19 10 for i, initiative in ipairs(initiatives) do
bsw/jbe@19 11 ui.tag{
bsw/jbe@19 12 tag = "entry",
bsw/jbe@19 13 content = function()
bsw/jbe@19 14 ui.tag{ tag = "category", attr = { term = initiative.issue.area.name } }
bsw/jbe@19 15 ui.tag{ tag = "author", content = initiative.current_draft.author.name }
bsw/jbe@19 16 ui.tag{ tag = "title", content = initiative.name }
bsw/jbe@19 17 ui.tag{ tag = "link", attr = {
bsw/jbe@19 18 href = encode.url{
bsw/jbe@19 19 module = "initiative",
bsw/jbe@19 20 view = "show",
bsw/jbe@19 21 id = initiative.id
bsw/jbe@19 22 }
bsw/jbe@19 23 } }
bsw/jbe@19 24 ui.tag{ tag = "id", content = "initiative_" .. tostring(initiative_id) }
bsw/jbe@19 25 ui.tag{ tag = "updated", content = tostring(initiative.created) }
bsw/jbe@19 26 ui.tag{ tag = "content", content = initiative.current_draft.draft }
bsw/jbe@19 27 end
bsw/jbe@19 28 }
bsw/jbe@19 29 end

Impressum / About Us