# HG changeset patch # User bsw # Date 1271944849 -7200 # Node ID 7bc629bc1c204ce6d65f7bb5a0c351e1cb8b8200 # Parent 29caccea23cb5a58b9de7f1691c0399eaade62af Optionally show configuration specific head over issues in public access mode diff -r 29caccea23cb -r 7bc629bc1c20 app/main/issue/_show_head.lua --- a/app/main/issue/_show_head.lua Sun Apr 18 18:19:58 2010 +0200 +++ b/app/main/issue/_show_head.lua Thu Apr 22 16:00:49 2010 +0200 @@ -102,8 +102,11 @@ -- ui.twitter("http://example.com/t" .. tostring(issue.id)) +if config.public_access_issue_head and not app.session.member_id then + config.public_access_issue_head(issue) +end -if issue.state == 'voting' and not direct_voter then +if app.session.member_id and issue.state == 'voting' and not direct_voter then ui.container{ attr = { class = "voting_active_info" }, content = function() diff -r 29caccea23cb -r 7bc629bc1c20 config/default.lua --- a/config/default.lua Sun Apr 18 18:19:58 2010 +0200 +++ b/config/default.lua Thu Apr 22 16:00:49 2010 +0200 @@ -1,5 +1,5 @@ config.app_name = "LiquidFeedback" -config.app_version = "beta16" +config.app_version = "beta17" config.app_title = config.app_name .. " (" .. request.get_config_name() .. " environment)" diff -r 29caccea23cb -r 7bc629bc1c20 static/style.css --- a/static/style.css Sun Apr 18 18:19:58 2010 +0200 +++ b/static/style.css Thu Apr 22 16:00:49 2010 +0200 @@ -980,7 +980,8 @@ .draft_updated_info, .voting_active_info, .initiator_invite_info, -.motd { +.motd, +.public_access_issue_head { background-color: #fec; border: 1px solid #b96; padding: 1ex;