bsw@2: ui.form{
bsw@2:   method = "get",
bsw@2:   module = "draft",
bsw@2:   view = "diff",
bsw@2:   content = function()
bsw@2:     ui.list{
bsw@2:       records = param.get("drafts", "table"),
bsw@2:       columns = {
bsw@2:         {
bsw@2:           label = _"Created at",
bsw@2:           content = function(record)
bsw@2:             ui.field.text{ readonly = true, value = format.timestamp(record.created) }
bsw@2:           end
bsw@2:         },
bsw@2:         {
bsw@2:           label = _"Author",
bsw@2:           content = function(record)
poelzi@134:             if record.author then
poelzi@134:               return record.author:ui_field_text()
bsw@51:             end
bsw@2:           end
bsw@2:         },
bsw@2:         {
bsw@2:           content = function(record)
bsw@2:             ui.link{
bsw@2:               attr = { class = "action" },
bsw@2:               text = _"Show",
bsw@2:               module = "draft",
bsw@2:               view = "show",
bsw@2:               id = record.id
bsw@2:             }
bsw@2:           end
bsw@2:         },
bsw@2:         {
bsw@2:           label = _"Compare",
bsw@2:           content = function(record)
bsw@2:             slot.put('')
bsw@2:             slot.put('')
bsw@2:           end
bsw/jbe@0:         }
bsw@2:       }
bsw/jbe@0:     }
bsw@2:     ui.submit{ text = _"Compare" }
bsw@2:   end
bsw/jbe@0: }