liquid_feedback_frontend
diff app/main/issue/_show_head.lua @ 16:559c6be0e1e9
"Vote later" feature; Refactored interest box
author | bsw |
---|---|
date | Tue Feb 02 00:10:17 2010 +0100 (2010-02-02) |
parents | 72c5e0ee7c98 |
children | 00d1004545f1 |
line diff
1.1 --- a/app/main/issue/_show_head.lua Sun Jan 31 22:34:45 2010 +0100 1.2 +++ b/app/main/issue/_show_head.lua Tue Feb 02 00:10:17 2010 +0100 1.3 @@ -40,22 +40,6 @@ 1.4 view = "_show_box", 1.5 params = { issue = issue } 1.6 } 1.7 - -- TODO performance 1.8 - local interest = Interest:by_pk(issue.id, app.session.member.id) 1.9 - if not issue.closed and not issue.fully_frozen then 1.10 - if not interest then 1.11 - ui.link{ 1.12 - content = function() 1.13 - ui.image{ static = "icons/16/user_add.png" } 1.14 - slot.put(_"Add my interest") 1.15 - end, 1.16 - module = "interest", 1.17 - action = "update", 1.18 - params = { issue_id = issue.id }, 1.19 - routing = { default = { mode = "redirect", module = "issue", view = "show", id = issue.id } } 1.20 - } 1.21 - end 1.22 - end 1.23 1.24 if not issue.closed then 1.25 execute.view{ 1.26 @@ -65,17 +49,11 @@ 1.27 } 1.28 end 1.29 1.30 ---[[ 1.31 - if issue.state == "accepted" then 1.32 - -- TODO 1.33 - ui.link{ 1.34 - content = function() 1.35 - ui.image{ static = "icons/16/time.png" } 1.36 - slot.put(_"Vote now/later") 1.37 - end, 1.38 - } 1.39 - end 1.40 ---]] 1.41 + execute.view{ 1.42 + module = "issue", 1.43 + view = "_show_vote_later_box", 1.44 + params = { issue = issue } 1.45 + } 1.46 1.47 if config.issue_discussion_url_func then 1.48 local url = config.issue_discussion_url_func(issue)