liquid_feedback_frontend
diff 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 diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/app/main/draft/_list.lua Wed Nov 18 12:00:00 2009 +0100 1.3 @@ -0,0 +1,30 @@ 1.4 +ui.list{ 1.5 + records = param.get("drafts", "table"), 1.6 + columns = { 1.7 + { 1.8 + label = _"Id", 1.9 + name = "id" 1.10 + }, 1.11 + { 1.12 + label = _"Created at", 1.13 + content = function(record) 1.14 + ui.field.text{ value = format.timestamp(record.created) } 1.15 + end 1.16 + }, 1.17 + { 1.18 + label = _"Author", 1.19 + name = "author_name" 1.20 + }, 1.21 + { 1.22 + content = function(record) 1.23 + ui.link{ 1.24 + attr = { class = "action" }, 1.25 + text = _"Show", 1.26 + module = "draft", 1.27 + view = "show", 1.28 + id = record.id 1.29 + } 1.30 + end 1.31 + } 1.32 + } 1.33 +}