liquid_feedback_frontend
view app/main/draft/_show.lua @ 31:a6caaff47205
Report view for all closed issues added
| author | bsw | 
|---|---|
| date | Tue Feb 23 21:09:10 2010 +0100 (2010-02-23) | 
| parents | 00d1004545f1 | 
| children | 0849be391140 | 
 line source
     1 local draft = param.get("draft", "table")
     3 ui.form{
     4   attr = { class = "vertical" },
     5   record = draft,
     6   readonly = true,
     7   content = function()
     9     ui.field.text{ 
    10       label = _"Last author",
    11       value = _(
    12         "#{author} at #{date}", {
    13           author = draft.author_name,
    14           date = format.timestamp(draft.created)
    15         }
    16       )
    17     }
    18     ui.container{
    19       attr = { class = "draft_content wiki" },
    20       content = function()
    21         slot.put(format.wiki_text(draft.content, draft.formatting_engine))
    22       end
    23     }
    24   end
    25 }
