liquid_feedback_frontend
annotate app/main/initiative/list_rss.lua @ 24:81586ea68d57
Minor bugfixes
app/main/initiative/_list.lua:
Replaced single by optional object mode
locale/translations.de.lua:
Consistent translation
app/main/initiative/_show.lua:
Added missing case "not approved" in voting info box
app/main/initiative/_show_voting.lua:
Added link to initiative
app/main/initiative/_show_voting.lua:
Added missing argument for link
app/main/member/show_tab.lua:
Added outgoing argument to show outgoing delegations correctly
app/main/initiative/_list.lua:
Replaced single by optional object mode
locale/translations.de.lua:
Consistent translation
app/main/initiative/_show.lua:
Added missing case "not approved" in voting info box
app/main/initiative/_show_voting.lua:
Added link to initiative
app/main/initiative/_show_voting.lua:
Added missing argument for link
app/main/member/show_tab.lua:
Added outgoing argument to show outgoing delegations correctly
| author | bsw |
|---|---|
| date | Sun Feb 21 14:09:11 2010 +0100 (2010-02-21) |
| 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 |