liquid_feedback_frontend

view app/main/index/index.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 7d0f4721d2f3
line source
1 slot.select("title", function()
2 if app.session.member then
3 execute.view{
4 module = "member_image",
5 view = "_show",
6 params = {
7 member = app.session.member,
8 image_type = "avatar"
9 }
10 }
11 end
12 end)
14 slot.select("title", function()
15 ui.container{
16 attr = { class = "lang_chooser" },
17 content = function()
18 for i, lang in ipairs{"en", "de", "eo"} do
19 ui.link{
20 content = function()
21 ui.image{
22 static = "lang/" .. lang .. ".png",
23 attr = { style = "margin-left: 0.5em;", alt = lang }
24 }
25 end,
26 text = _('Select language "#{langcode}"', { langcode = lang }),
27 module = "index",
28 action = "set_lang",
29 params = { lang = lang },
30 routing = {
31 default = {
32 mode = "redirect",
33 module = request.get_module(),
34 view = request.get_view(),
35 id = param.get_id_cgi(),
36 params = param.get_all_cgi()
37 }
38 }
39 }
40 end
41 end
42 }
43 end)
45 slot.put_into("title", encode.html(config.app_title))
47 slot.select("actions", function()
49 if app.session.member then
50 ui.link{
51 content = function()
52 ui.image{ static = "icons/16/application_form.png" }
53 slot.put(_"Edit my profile")
54 end,
55 module = "member",
56 view = "edit"
57 }
58 ui.link{
59 content = function()
60 ui.image{ static = "icons/16/user_gray.png" }
61 slot.put(_"Upload images")
62 end,
63 module = "member",
64 view = "edit_images"
65 }
66 execute.view{
67 module = "delegation",
68 view = "_show_box"
69 }
70 ui.link{
71 content = function()
72 ui.image{ static = "icons/16/wrench.png" }
73 slot.put(_"Settings")
74 end,
75 module = "member",
76 view = "settings"
77 }
78 if config.download_dir then
79 ui.link{
80 content = function()
81 ui.image{ static = "icons/16/database_save.png" }
82 slot.put(_"Download")
83 end,
84 module = "index",
85 view = "download"
86 }
87 end
88 end
89 end)
91 util.help("index.index", _"Home")
93 execute.view{
94 module = "member",
95 view = "_show",
96 params = {
97 member = app.session.member,
98 show_as_homepage = true
99 }
100 }

Impressum / About Us