liquid_feedback_frontend

view app/main/member/history.lua @ 10:72c5e0ee7c98

Version beta6

Bugfixes:
- Security fix: Every user was able to change the discussion URL of an initiative
- Creation of new issues in areas without default policies is now possible
- Members can now be sorted in different ways
- No error when trying to compare a draft with itself
- Added missing local statement to variable initialization in app/main/delegation/new.lua
- CSS flaw in initiative action bar fixed

New features:
- Possiblity to invite other users to become initiator
- Revokation of initiatives implemented
- Number of suggestions, supporters, etc. is shown on corresponding tabs of initiative view
- Members can now be sorted by account creation (default sorting is "newest first")
- Configuration option to create an automatic discussion link for all issues
- First draft of global timeline feature (not accessible via link yet)
- Custom stylesheet URL for users marked as developers

In area listing the number of closed issues is shown too

Renamed "author" field of initiative to "last author"

Removed wrongly included file app/main/member/_show_thumb.lua.orig in the distribution

Help texts updated
author bsw
date Sun Jan 10 12:00:00 2010 +0100 (2010-01-10)
parents 0ee1e0c42d4c
children aaba4d28dd53
line source
1 local member = Member:by_id(param.get_id())
3 slot.put_into("title", _("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 }

Impressum / About Us