liquid_feedback_frontend
view app/main/draft/_list.lua @ 52:88ac7798b562
Several bugfixes (getpic.c, accepted but canceled issues, ...); Listing of available policies
- Bugfixes in fastpath/getpic.c (related to crashes since alpha5)
- Respect Content-Types of images in database
(needs database update, as Content-Type was incorrectly stored by previous versions)
- Typo fixed in help messages
- RSS-Feed (currently only after manual authentication while session is valid)
- Listing of available policies
- German translation fixed: "gebe" -> "gib" (Imperativ)
- Bugfixes related to issues which had been accepted but canceled afterwards
- Prohibit creation of initiatives in disabled areas or with disabled policies
- Bugfixes in fastpath/getpic.c (related to crashes since alpha5)
- Respect Content-Types of images in database
(needs database update, as Content-Type was incorrectly stored by previous versions)
- Typo fixed in help messages
- RSS-Feed (currently only after manual authentication while session is valid)
- Listing of available policies
- German translation fixed: "gebe" -> "gib" (Imperativ)
- Bugfixes related to issues which had been accepted but canceled afterwards
- Prohibit creation of initiatives in disabled areas or with disabled policies
author | bsw/jbe |
---|---|
date | Thu Apr 15 19:58:25 2010 +0200 (2010-04-15) |
parents | 0849be391140 |
children | de6b80867eb7 |
line source
1 ui.form{
2 method = "get",
3 module = "draft",
4 view = "diff",
5 content = function()
6 ui.list{
7 records = param.get("drafts", "table"),
8 columns = {
9 {
10 label = _"Created at",
11 content = function(record)
12 ui.field.text{ readonly = true, value = format.timestamp(record.created) }
13 end
14 },
15 {
16 label = _"Author",
17 content = function(record)
18 if app.session.member_id or config.public_access == "pseudonym" then
19 ui.field.text{ readonly = true, value = record.author.name }
20 else
21 ui.field.text{ readonly = true, value = _"[not displayed public]" }
22 end
23 end
24 },
25 {
26 content = function(record)
27 ui.link{
28 attr = { class = "action" },
29 text = _"Show",
30 module = "draft",
31 view = "show",
32 id = record.id
33 }
34 end
35 },
36 {
37 label = _"Compare",
38 content = function(record)
39 slot.put('<input type="radio" name="old_draft_id" value="' .. tostring(record.id) .. '">')
40 slot.put('<input type="radio" name="new_draft_id" value="' .. tostring(record.id) .. '">')
41 end
42 }
43 }
44 }
45 ui.submit{ text = _"Compare" }
46 end
47 }