liquid_feedback_frontend

changeset 60:7bc629bc1c20

Optionally show configuration specific head over issues in public access mode
author bsw
date Thu Apr 22 16:00:49 2010 +0200 (2010-04-22)
parents 29caccea23cb
children f77ca23f9ebd
files app/main/issue/_show_head.lua config/default.lua static/style.css
line diff
     1.1 --- a/app/main/issue/_show_head.lua	Sun Apr 18 18:19:58 2010 +0200
     1.2 +++ b/app/main/issue/_show_head.lua	Thu Apr 22 16:00:49 2010 +0200
     1.3 @@ -102,8 +102,11 @@
     1.4  
     1.5  --  ui.twitter("http://example.com/t" .. tostring(issue.id))
     1.6  
     1.7 +if config.public_access_issue_head and not app.session.member_id then
     1.8 +  config.public_access_issue_head(issue)
     1.9 +end
    1.10  
    1.11 -if issue.state == 'voting' and not direct_voter then
    1.12 +if app.session.member_id and issue.state == 'voting' and not direct_voter then
    1.13    ui.container{
    1.14      attr = { class = "voting_active_info" },
    1.15      content = function()
     2.1 --- a/config/default.lua	Sun Apr 18 18:19:58 2010 +0200
     2.2 +++ b/config/default.lua	Thu Apr 22 16:00:49 2010 +0200
     2.3 @@ -1,5 +1,5 @@
     2.4  config.app_name = "LiquidFeedback"
     2.5 -config.app_version = "beta16"
     2.6 +config.app_version = "beta17"
     2.7  
     2.8  config.app_title = config.app_name .. " (" .. request.get_config_name() .. " environment)"
     2.9  
     3.1 --- a/static/style.css	Sun Apr 18 18:19:58 2010 +0200
     3.2 +++ b/static/style.css	Thu Apr 22 16:00:49 2010 +0200
     3.3 @@ -980,7 +980,8 @@
     3.4  .draft_updated_info,
     3.5  .voting_active_info,
     3.6  .initiator_invite_info,
     3.7 -.motd {
     3.8 +.motd,
     3.9 +.public_access_issue_head {
    3.10    background-color: #fec;
    3.11    border: 1px solid #b96;
    3.12    padding: 1ex;

Impressum / About Us