liquid_feedback_frontend
diff app/main/initiative/list_rss.lua @ 19:00d1004545f1
Dynamic interface using XMLHttpRequests, and many other changes
Bugfixes:
- Only allow voting on admitted initiatives
- Repaired issue search
- Don't display delegations for closed issues on member page
- Don't show revoke link in initiative, when issue is already half_frozen
- Localization for voting JavaScript
- Display author of suggestions
Disclosure of voting data after voting is finished:
- Possibility to inspect every ballot including preferences
- Show number of voters preferring one initiative to another initiative
Interface behaviour changes:
- Reversed default order of drafts
- Default order of suggestions changed
- Show new drafts of initiatives only once per day in timeline
Accessibility:
- Barrier-free voting implemented
- POST links are now accessible without JavaScript
- Changed gray for unsatisfied supporters in bar graph to a lighter gray
Other interface improvements:
- Optical enhancements
- Dynamic interface using XMLHttpRequests
- Show usage terms in about section
- Show own membership in area listing
- Show uninformed supporters greyed out and marked with yellow question mark
- Warning box in non-admitted initiatives
- When voted, don't display voting notice and change label of voting link
- Show object counts in more tabulator heads
- Enlarged member statement input field
Miscellaneous:
- Code cleanup
- Added README file containing installation instructions
- Use new WebMCP function ui.filters{...} instead of own ui.filter and ui.order functions
Bugfixes:
- Only allow voting on admitted initiatives
- Repaired issue search
- Don't display delegations for closed issues on member page
- Don't show revoke link in initiative, when issue is already half_frozen
- Localization for voting JavaScript
- Display author of suggestions
Disclosure of voting data after voting is finished:
- Possibility to inspect every ballot including preferences
- Show number of voters preferring one initiative to another initiative
Interface behaviour changes:
- Reversed default order of drafts
- Default order of suggestions changed
- Show new drafts of initiatives only once per day in timeline
Accessibility:
- Barrier-free voting implemented
- POST links are now accessible without JavaScript
- Changed gray for unsatisfied supporters in bar graph to a lighter gray
Other interface improvements:
- Optical enhancements
- Dynamic interface using XMLHttpRequests
- Show usage terms in about section
- Show own membership in area listing
- Show uninformed supporters greyed out and marked with yellow question mark
- Warning box in non-admitted initiatives
- When voted, don't display voting notice and change label of voting link
- Show object counts in more tabulator heads
- Enlarged member statement input field
Miscellaneous:
- Code cleanup
- Added README file containing installation instructions
- Use new WebMCP function ui.filters{...} instead of own ui.filter and ui.order functions
| author | bsw/jbe |
|---|---|
| date | Sat Feb 20 22:10:31 2010 +0100 (2010-02-20) |
| parents | |
| children | 88ac7798b562 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/app/main/initiative/list_rss.lua Sat Feb 20 22:10:31 2010 +0100 1.3 @@ -0,0 +1,29 @@ 1.4 +slot.set_layout("atom") 1.5 + 1.6 +request.force_absolute_baseurl() 1.7 + 1.8 +local initiatives = Initiative:new_selector() 1.9 + :add_order_by("id DESC") 1.10 + :limit(25) 1.11 + :exec() 1.12 + 1.13 +for i, initiative in ipairs(initiatives) do 1.14 + ui.tag{ 1.15 + tag = "entry", 1.16 + content = function() 1.17 + ui.tag{ tag = "category", attr = { term = initiative.issue.area.name } } 1.18 + ui.tag{ tag = "author", content = initiative.current_draft.author.name } 1.19 + ui.tag{ tag = "title", content = initiative.name } 1.20 + ui.tag{ tag = "link", attr = { 1.21 + href = encode.url{ 1.22 + module = "initiative", 1.23 + view = "show", 1.24 + id = initiative.id 1.25 + } 1.26 + } } 1.27 + ui.tag{ tag = "id", content = "initiative_" .. tostring(initiative_id) } 1.28 + ui.tag{ tag = "updated", content = tostring(initiative.created) } 1.29 + ui.tag{ tag = "content", content = initiative.current_draft.draft } 1.30 + end 1.31 + } 1.32 +end 1.33 \ No newline at end of file