liquid_feedback_frontend

diff app/main/issue/_show.lua @ 547:57a261a81c5a

Added preloading to issue list
author bsw
date Tue May 29 20:43:27 2012 +0200 (2012-05-29)
parents 5ca9de94cb13
children 65ddf5998458
line diff
     1.1 --- a/app/main/issue/_show.lua	Sun May 27 23:08:33 2012 +0200
     1.2 +++ b/app/main/issue/_show.lua	Tue May 29 20:43:27 2012 +0200
     1.3 @@ -4,7 +4,7 @@
     1.4  
     1.5  local direct_voter
     1.6  if app.session.member_id then
     1.7 -  direct_voter = DirectVoter:by_pk(issue.id, app.session.member.id)
     1.8 +  direct_voter = issue.member_info.direct_voted
     1.9  end
    1.10  
    1.11  local voteable = app.session.member_id and issue.state == 'voting' and
    1.12 @@ -12,8 +12,6 @@
    1.13  
    1.14  local vote_link_text = direct_voter and _"Change vote" or "Vote now"
    1.15  
    1.16 -issue:load_delegation_info_once_for_member_id(app.session.member_id)
    1.17 -
    1.18  
    1.19  local class = "issue"
    1.20  if issue.is_interested then
    1.21 @@ -97,7 +95,7 @@
    1.22      end
    1.23  
    1.24      if not issue.closed then
    1.25 -      if issue.delegation_info.own_delegation_scope ~= "issue" then
    1.26 +      if issue.member_info.own_delegation_scope ~= "issue" then
    1.27          ui.link{ text = _"Delegate issue", module = "delegation", view = "show", params = { issue_id = issue.id } }
    1.28        else
    1.29          ui.link{ text = _"Change issue delegation", module = "delegation", view = "show", params = { issue_id = issue.id } }

Impressum / About Us