liquid_feedback_frontend
diff app/main/draft/_show.lua @ 51:0849be391140
Public read access; Read-only API for initiatives; Prepared integration of OpenID
author | bsw |
---|---|
date | Sun Apr 04 22:05:11 2010 +0200 (2010-04-04) |
parents | 00d1004545f1 |
children | d63d32c9fb37 |
line diff
1.1 --- a/app/main/draft/_show.lua Wed Mar 31 17:50:32 2010 +0200 1.2 +++ b/app/main/draft/_show.lua Sun Apr 04 22:05:11 2010 +0200 1.3 @@ -6,15 +6,28 @@ 1.4 readonly = true, 1.5 content = function() 1.6 1.7 - ui.field.text{ 1.8 - label = _"Last author", 1.9 - value = _( 1.10 - "#{author} at #{date}", { 1.11 - author = draft.author_name, 1.12 - date = format.timestamp(draft.created) 1.13 - } 1.14 - ) 1.15 - } 1.16 + if app.session.member_id or config.public_access == "pseudonym" then 1.17 + ui.field.text{ 1.18 + label = _"Last author", 1.19 + value = _( 1.20 + "#{author} at #{date}", { 1.21 + author = draft.author_name, 1.22 + date = format.timestamp(draft.created) 1.23 + } 1.24 + ) 1.25 + } 1.26 + else 1.27 + ui.field.text{ 1.28 + label = _"Last author", 1.29 + value = _( 1.30 + "#{author} at #{date}", { 1.31 + author = "[not displayed public]", 1.32 + date = format.timestamp(draft.created) 1.33 + } 1.34 + ) 1.35 + } 1.36 + end 1.37 + 1.38 ui.container{ 1.39 attr = { class = "draft_content wiki" }, 1.40 content = function()