liquid_feedback_frontend

view app/main/member/show.lua @ 6:8d91bccab0bf

Version beta2

Possibility to browse voters of a closed issue

Registration with invite code

Email confirmation and password recovery

Download function (for database dumps) added

Critical bug solved, which made it impossible to select your opinion on other peoples suggestions

Catching error, when trying to set an opinion on a suggestion which has been meanwhile deleted

Fixed wrong sorting order for "supporters" or "potential supporters"

Added format info for birthday (Error when entering dates in wrong format is NOT fixed in this release)

Strip space characters from certain fields and ensure they contain at least 3 characters

Showing grade in opinion/list as clear text instead of integer value

More information on initiative is displayed while voting

Colored notification box shown on pages of issues or initiatives which are currently in voting state

Changed default filter for issues to "Open"

Back link on suggestion page

Some optical changes

Removed wrong space character in LICENSE file
author bsw/jbe
date Sat Jan 02 12:00:00 2010 +0100 (2010-01-02)
parents 80c215dbf076
children 0ee1e0c42d4c
line source
1 local member = Member:by_id(param.get_id())
3 slot.select("title", function()
4 execute.view{
5 module = "member_image",
6 view = "_show",
7 params = {
8 member = member,
9 image_type = "avatar"
10 }
11 }
12 end)
14 slot.put_into("title", encode.html(_"Member '#{member}'":gsub("#{member}", member.name)))
16 if member.id == app.session.member.id then
17 slot.put_into("actions", _"That's me!")
18 else
19 --TODO performance
20 local contact = Contact:by_pk(app.session.member.id, member.id)
21 if contact then
22 slot.select("actions", function()
23 ui.container{
24 attr = { class = "interest" },
25 content = _"You have saved this member as contact."
26 }
27 ui.link{
28 content = function()
29 ui.image{ static = "icons/16/book_delete.png" }
30 slot.put(encode.html(_"Remove from contacts"))
31 end,
32 module = "contact",
33 action = "remove_member",
34 id = contact.other_member_id,
35 routing = {
36 default = {
37 mode = "redirect",
38 module = request.get_module(),
39 view = request.get_view(),
40 id = param.get_id_cgi(),
41 params = param.get_all_cgi()
42 }
43 }
44 }
45 end)
46 else
47 slot.select("actions", function()
48 ui.link{
49 content = function()
50 ui.image{ static = "icons/16/book_add.png" }
51 slot.put(encode.html(_"Add to my contacts"))
52 end,
53 module = "contact",
54 action = "add_member",
55 id = member.id,
56 routing = {
57 default = {
58 mode = "redirect",
59 module = request.get_module(),
60 view = request.get_view(),
61 id = param.get_id_cgi(),
62 params = param.get_all_cgi()
63 }
64 }
65 }
66 end)
67 end
68 end
70 util.help("member.show", _"Member page")
72 execute.view{
73 module = "member",
74 view = "_show",
75 params = { member = member }
76 }

Impressum / About Us