liquid_feedback_frontend

view app/main/draft/_show.lua @ 57:4f39f0a0d5b5

Listing of updated drafts on start page; Code cleanup; Minor bugfix

MOTD, initiator invite, issues to vote and listing of updated drafts shown as tabs on start page;
Bugfix: Initiator icon only shown when initiatorship has been accepted
author bsw
date Sat Apr 17 21:59:02 2010 +0200 (2010-04-17)
parents 0849be391140
children d63d32c9fb37
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 if app.session.member_id or config.public_access == "pseudonym" then
10 ui.field.text{
11 label = _"Last author",
12 value = _(
13 "#{author} at #{date}", {
14 author = draft.author_name,
15 date = format.timestamp(draft.created)
16 }
17 )
18 }
19 else
20 ui.field.text{
21 label = _"Last author",
22 value = _(
23 "#{author} at #{date}", {
24 author = "[not displayed public]",
25 date = format.timestamp(draft.created)
26 }
27 )
28 }
29 end
31 ui.container{
32 attr = { class = "draft_content wiki" },
33 content = function()
34 slot.put(format.wiki_text(draft.content, draft.formatting_engine))
35 end
36 }
37 end
38 }

Impressum / About Us