liquid_feedback_frontend

diff app/main/draft/_show.lua @ 274:aec9df5b4cd3

More optical enhancements and repositioning of elements
author bsw
date Sun Feb 12 12:20:19 2012 +0100 (2012-02-12)
parents cc7650c7053f
children cc64a4fc6ab6
line diff
     1.1 --- a/app/main/draft/_show.lua	Wed Feb 08 18:49:22 2012 +0100
     1.2 +++ b/app/main/draft/_show.lua	Sun Feb 12 12:20:19 2012 +0100
     1.3 @@ -7,43 +7,6 @@
     1.4    readonly = true,
     1.5    content = function()
     1.6  
     1.7 -    if app.session.member_id or config.public_access == "pseudonym" then
     1.8 -      if draft.author then
     1.9 -        -- ugly workaround for getting html into a replaced string und to the user
    1.10 -        ui.container{label = _"Last author", label_attr={class="ui_field_label"}, content = function()
    1.11 -            local str = _("#{author} at #{date}",
    1.12 -                            {author = string.format('<a href="%s">%s</a>',
    1.13 -                                                    encode.url{
    1.14 -                                                      module    = "member",
    1.15 -                                                      view      = "show",
    1.16 -                                                      id        = draft.author.id,
    1.17 -                                                    },
    1.18 -                                                    encode.html(draft.author.name)),
    1.19 -                             date = encode.html(format.timestamp(draft.created))
    1.20 -                            }
    1.21 -                        )
    1.22 -            slot.put("<span>", str, "</span>")
    1.23 -          end
    1.24 -        }
    1.25 -      else
    1.26 -        text = _("#{author} at #{date}", {
    1.27 -          author = encode.html(draft.author_name),
    1.28 -          date = format.timestamp(draft.created)
    1.29 -        })
    1.30 -        ui.field.text{label = _"Last author", value = text }
    1.31 -      end
    1.32 -    else
    1.33 -      ui.field.text{
    1.34 -        label = _"Last author",
    1.35 -        value = _(
    1.36 -          "#{author} at #{date}", {
    1.37 -            author = _"[not displayed public]",
    1.38 -            date = format.timestamp(draft.created)
    1.39 -          }
    1.40 -        )
    1.41 -      }
    1.42 -    end
    1.43 -
    1.44      ui.container{
    1.45        attr = { class = "draft_content wiki" },
    1.46        content = function()

Impressum / About Us