liquid_feedback_frontend
view app/main/member/history.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
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 | aaba4d28dd53 |
| children | 07177cd8c256 |
line source
1 local member = Member:by_id(param.get_id())
3 slot.put_into("title", encode.html(_("Member name history for '#{name}'", { name = member.name })))
5 slot.select("actions", function()
6 ui.link{
7 content = function()
8 ui.image{ static = "icons/16/cancel.png" }
9 slot.put(_"Back")
10 end,
11 module = "member",
12 view = "show",
13 id = member.id
14 }
15 end)
17 local entries = member:get_reference_selector("history_entries"):add_order_by("id DESC"):exec()
19 ui.tag{
20 tag = "table",
21 content = function()
22 ui.tag{
23 tag = "tr",
24 content = function()
25 ui.tag{
26 tag = "th",
27 content = _("Name")
28 }
29 ui.tag{
30 tag = "th",
31 content = _("Used until")
32 }
33 end
34 }
35 ui.tag{
36 tag = "tr",
37 content = function()
38 ui.tag{
39 tag = "td",
40 content = member.name
41 }
42 ui.tag{
43 tag = "td",
44 content = _"continuing"
45 }
46 end
47 }
48 for i, entry in ipairs(entries) do
49 local display = false
50 if (i == 1) then
51 if entry.name ~= member.name then
52 display = true
53 end
54 elseif entry.name ~= entries[i-1].name then
55 display = true
56 end
57 if display then
58 ui.tag{
59 tag = "tr",
60 content = function()
61 ui.tag{
62 tag = "td",
63 content = entry.name
64 }
65 ui.tag{
66 tag = "td",
67 content = format.timestamp(entry["until"])
68 }
69 end
70 }
71 end
72 end
73 end
74 }
75 slot.put("<br />")
76 ui.container{
77 content = _("This member account has been created at #{created}", { created = format.timestamp(member.created)})
78 }
