liquid_feedback_frontend

view app/main/draft/_list.lua @ 118:93f4e465b50d

add initiator support in delegation

if a delegation is issued from the initiative view, the initiators
from that one are added to the delegation target list. this makes it easier to delegate to the author without the need to add him to the contact list.
author Daniel Poelzleithner <poelzi@poelzi.org>
date Mon Sep 20 20:32:04 2010 +0200 (2010-09-20)
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 }

Impressum / About Us