liquid_feedback_frontend

annotate app/main/index/_not_voted_issues.lua @ 75:733f65c0c0a0

Bugfixes, feature enhancements, code-cleanup, and major work on API

Details:
- API
-- Allow relation name to be passed to helper function util.autoapi{...}
-- Added area API
-- Bugfixes in API
--- Correctly return initiatives (bug #162)
--- Correctly process "id" parameter for initiative API
--- Bugfix related to "state" parameter (bug #165)
--- Changed constant "discussion" to "accepted" (in model/issue.lua, used by API)
--- Fixed JSON encoding in auto_api (bug #181)
--- Ignore list filter "voted" in case of public access
--- Enable access to API without session
- Work on RSS feed (incomplete yet)
- Other bugfixes
-- Handle empty browser identification string
-- Handle invalid date in member/update.lua (bugs #24 #109 #115 #136)
-- Better handle errors while converting uploaded images. (bug #79 +5 duplicates)
-- Don't display revoked initiatives in list of new drafts (bug #134)
-- Fixed syntax error in app/main/member/_action/update_name.lua throwing unexpected error, when new name was too short
-- Do not display refresh support button for revoked initiatives
-- Repaired issue search (bug #150)
-- Fixed typos in german translation files
--- "initi(i)erte"
--- "Er(g)eignisse" (bug #161)
- Code cleanup
-- Removed deprecated motd files locale/motd/de.txt and locale/motd/de_public.txt
-- Removed redundant code in app/main/index/_updated_drafts.lua
- New features and (optical) enhancements
-- Support change of notify email; notification of not approved address added to start page
-- Settings dialog splitted into single pages
-- Mark deactivated members
-- Calendar for birthday selection in profile
-- Policy list public readable when public access is enabled
author bsw
date Thu Jul 08 18:44:02 2010 +0200 (2010-07-08)
parents 4f39f0a0d5b5
children 87c33552f406
rev   line source
bsw@57 1 local areas = param.get("areas", "table")
bsw@57 2
bsw@57 3 if #areas > 0 then
bsw@57 4 ui.container{
bsw@57 5 attr = { style = "font-weight: bold;" },
bsw@57 6 content = _"Current votings in areas you are member of and issues you are interested in:"
bsw@57 7 }
bsw@57 8
bsw@57 9 ui.list{
bsw@57 10 records = areas,
bsw@57 11 columns = {
bsw@57 12 {
bsw@57 13 name = "name"
bsw@57 14 },
bsw@57 15 {
bsw@57 16 content = function(record)
bsw@57 17 if record.is_member and record.issues_to_vote_count > 0 then
bsw@57 18 ui.link{
bsw@57 19 content = function()
bsw@57 20 if record.issues_to_vote_count > 1 then
bsw@57 21 slot.put(_("#{issues_to_vote_count} issue(s)", { issues_to_vote_count = record.issues_to_vote_count }))
bsw@57 22 else
bsw@57 23 slot.put(_("One issue"))
bsw@57 24 end
bsw@57 25 end,
bsw@57 26 module = "area",
bsw@57 27 view = "show",
bsw@57 28 id = record.id,
bsw@57 29 params = {
bsw@57 30 filter = "frozen",
bsw@57 31 filter_voting = "not_voted"
bsw@57 32 }
bsw@57 33 }
bsw@57 34 else
bsw@57 35 slot.put(_"Not a member")
bsw@57 36 end
bsw@57 37 end
bsw@57 38 },
bsw@57 39 {
bsw@57 40 content = function(record)
bsw@57 41 if record.interested_issues_to_vote_count > 0 then
bsw@57 42 ui.link{
bsw@57 43 content = function()
bsw@57 44 if record.interested_issues_to_vote_count > 1 then
bsw@57 45 slot.put(_("#{interested_issues_to_vote_count} issue(s) you are interested in", { interested_issues_to_vote_count = record.interested_issues_to_vote_count }))
bsw@57 46 else
bsw@57 47 slot.put(_"One issue you are interested in")
bsw@57 48 end
bsw@57 49 end,
bsw@57 50 module = "area",
bsw@57 51 view = "show",
bsw@57 52 id = record.id,
bsw@57 53 params = {
bsw@57 54 filter = "frozen",
bsw@57 55 filter_interest = "my",
bsw@57 56 filter_voting = "not_voted"
bsw@57 57 }
bsw@57 58 }
bsw@57 59 end
bsw@57 60 end
bsw@57 61 },
bsw@57 62 }
bsw@57 63 }
bsw@57 64 end

Impressum / About Us