liquid_feedback_frontend
diff app/main/issue/_show.lua @ 529:5ca9de94cb13
Delegation preview when setting delegation, optical enhancements, typos fixed
author | bsw |
---|---|
date | Sun May 20 19:43:01 2012 +0200 (2012-05-20) |
parents | 305329da1c75 |
children | 57a261a81c5a |
line diff
1.1 --- a/app/main/issue/_show.lua Fri May 18 21:03:10 2012 +0200 1.2 +++ b/app/main/issue/_show.lua Sun May 20 19:43:01 2012 +0200 1.3 @@ -12,6 +12,8 @@ 1.4 1.5 local vote_link_text = direct_voter and _"Change vote" or "Vote now" 1.6 1.7 +issue:load_delegation_info_once_for_member_id(app.session.member_id) 1.8 + 1.9 1.10 local class = "issue" 1.11 if issue.is_interested then 1.12 @@ -94,6 +96,15 @@ 1.13 slot.put(" · ") 1.14 end 1.15 1.16 + if not issue.closed then 1.17 + if issue.delegation_info.own_delegation_scope ~= "issue" then 1.18 + ui.link{ text = _"Delegate issue", module = "delegation", view = "show", params = { issue_id = issue.id } } 1.19 + else 1.20 + ui.link{ text = _"Change issue delegation", module = "delegation", view = "show", params = { issue_id = issue.id } } 1.21 + end 1.22 + slot.put(" · ") 1.23 + end 1.24 + 1.25 if config.issue_discussion_url_func then 1.26 local url = config.issue_discussion_url_func(issue) 1.27 ui.link{