liquid_feedback_frontend

view app/main/initiative/list_rss.lua @ 51:0849be391140

Public read access; Read-only API for initiatives; Prepared integration of OpenID
author bsw
date Sun Apr 04 22:05:11 2010 +0200 (2010-04-04)
parents 00d1004545f1
children 88ac7798b562
line source
1 slot.set_layout("atom")
3 request.force_absolute_baseurl()
5 local initiatives = Initiative:new_selector()
6 :add_order_by("id DESC")
7 :limit(25)
8 :exec()
10 for i, initiative in ipairs(initiatives) do
11 ui.tag{
12 tag = "entry",
13 content = function()
14 ui.tag{ tag = "category", attr = { term = initiative.issue.area.name } }
15 ui.tag{ tag = "author", content = initiative.current_draft.author.name }
16 ui.tag{ tag = "title", content = initiative.name }
17 ui.tag{ tag = "link", attr = {
18 href = encode.url{
19 module = "initiative",
20 view = "show",
21 id = initiative.id
22 }
23 } }
24 ui.tag{ tag = "id", content = "initiative_" .. tostring(initiative_id) }
25 ui.tag{ tag = "updated", content = tostring(initiative.created) }
26 ui.tag{ tag = "content", content = initiative.current_draft.draft }
27 end
28 }
29 end

Impressum / About Us