liquid_feedback_frontend

view app/main/draft/_list.lua @ 0:3bfb2fcf7ab9

Version alpha1
author bsw/jbe
date Wed Nov 18 12:00:00 2009 +0100 (2009-11-18)
parents
children 5c601807d397
line source
1 ui.list{
2 records = param.get("drafts", "table"),
3 columns = {
4 {
5 label = _"Id",
6 name = "id"
7 },
8 {
9 label = _"Created at",
10 content = function(record)
11 ui.field.text{ value = format.timestamp(record.created) }
12 end
13 },
14 {
15 label = _"Author",
16 name = "author_name"
17 },
18 {
19 content = function(record)
20 ui.link{
21 attr = { class = "action" },
22 text = _"Show",
23 module = "draft",
24 view = "show",
25 id = record.id
26 }
27 end
28 }
29 }
30 }

Impressum / About Us